﻿﻿/**
 * 配置文件
 */
MGISIP="localhost:8080/";//mgis.mcd.com.cn
MGISIP2="mgisstg02.mcd.com.cn:8080/";//mgis.mcd.com.cn
MGISURL2="http://mgisstg02.mcd.com.cn:8080/mgis";//mgis.mcd.com.cn
MGISURL="http://localhost:8080/mgis";
ARCGISSERVER="http://arcgisstg.mcd.com.cn:6080";
PORTALURL = "http://pmtplus.mcd.com.cn/";//Portal地址
PORTALURL02 = "http://pmtplus02.mcd.com.cn/";//Portal地址
PORTALURL2 = "http://pmtonair.mcd.com.cn/";//Portal2的Onair地址
PORTALURL202 = "http://pmtonair02.mcd.com.cn/";//Portal2的Onair地址

MQPPURL = "App/MarketQuestInfo?PPCode=";//MQ的PP的地址
MQSTOREURL = "app/marketqueststore?storecode=";//MQ的Store的地址



var ioc = {
    map: {
        initExt: {
        	xmax: 20589343.074530676,
            xmin: 4152324.5120907407,
            ymax: 7929760.617329163,
            ymin: -367020.18085480365,
            "spatialReference": {
                "wkid": 102100
            }
        },
        fullExt: {
            xmax: 20589343.074530676,
            xmin: 4152324.5120907407,
            ymax: 7929760.617329163,
            ymin: -367020.18085480365
        },
        basemaps: {
        	cn:"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer",//"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer",
        	en:"http://map.geoq.cn/ArcGIS/rest/services/ChinaOnlineCommunityOnlyENG/MapServer"
        }
    },
    layersTree:[
            {
            	name:"Store",
            	id:"MGIS_Layercontrol_Store",
            	checked:true,
            	layers:["storeCluster","store"]
            },
           {
                	name:"Pipeline",
                	subNodes:[
    					{
    						name:"Active",
    						id:"MGIS_Layercontrol_PP",
    						checked:true,
    						layers:["pipelineCluster","pipeline_active"]
    					},
    					{
    						name:"All",
    						id:"MGIS_Layercontrol_PP",
    						layers:["pipeline"]
    					}
        	        ]
            },    
            {
            	name:"Trade Area",
            	subNodes:[
					{
						name:"TA_Store",
						id:"MGIS_Layercontrol_TAStore",
						layers:["taStore"]
					},
					{
						name:"TA_Pipeline",
						id:"MGIS_Layercontrol_TAPipeline",
						layers:["taPipeline"]
					}
    	        ]
            },
            {
            	name:"Focal Area",
            	subNodes:[
					{
						name:"Strategy Point",
		            	id:"MGIS_Layercontrol_StrategyPoint",
		            	layers:["strategyPoint"]
					},
					{
						name:"Focal Area",
		            	id:"MGIS_Layercontrol_FA",
		            	layers:["focalArea"]
					},
					{
						name:"FA-TA",
		            	id:"MGIS_Layercontrol_FA-TA",
		            	layers:["faTA"]
					}
    	        ]
            },
            {
            	name:"Competitor",
            	subNodes:[
					{
						name:"KFC",
						id:"MGIS_Layercontrol_Competitor",
						layers:["kfc"]
					},
					{
						name:"PizzaHut",
						id:"MGIS_Layercontrol_Competitor",
						layers:["pizzahut"]
					},
					{
						name:"Dicos",
						id:"MGIS_Layercontrol_Competitor",
						layers:["dicos"]
					},
					{
						name:"DFJB",
						id:"MGIS_Layercontrol_Competitor",
						layers:["dfjb"]
					},
					{
						name:"Burger King",
						id:"MGIS_Layercontrol_Competitor",
						layers:["burgerking"]
					},
					{
						name:"Yonghe",
						id:"MGIS_Layercontrol_Competitor",
						layers:["yonghe"]
					},
					{
						name:"Other",
						id:"MGIS_Layercontrol_Competitor",
						layers:["other"]
					}
    	        ]
            },
            {
            	name:"Generator",
            	subNodes:[
					{
						name:"Home",
						id:"MGIS_Layercontrol_Generator_Home",
						layers:["home_point","home_polygon"]
					},
					{
						name:"Work",
						id:"MGIS_Layercontrol_Generator_Work",
						layers:["work_point","work_polygon"]
					},
					{
						name:"Shop",
						id:"MGIS_Layercontrol_Generator_Shop",
						layers:["shop_point","shop_polygon"]
					},
					{
						name:"School",
						id:"MGIS_Layercontrol_Generator_School",
						layers:["school_point","school_polygon"]
					},
					{
						name:"T-Hub",
						id:"MGIS_Layercontrol_Generator_T-Hub",
						layers:["thub_point","thub_polygon"]
					},
					{
						name:"Leisure",
						id:"MGIS_Layercontrol_Generator_Leisure",
						layers:["leisure_point","leisure_polygon"]
					},
					{
						name:"Other",
						id:"MGIS_Layercontrol_Generator_Other",
						layers:["other_point","other_polygon"]
					}
    	        ]
            },
            {
            	name:"Enabler",
            	subNodes:[
					{
						name:"Metro Station",
						id:"MGIS_Layercontrol_Enabler_MetroStation",
						layers:["metroStation"]
					},
					{
						name:"Bus Stop",
						id:"MGIS_Layercontrol_Enabler_BusStop",
						layers:["busStop"]
					}
    	        ]
            },
            {
            	name:"Drawing",
            	subNodes:[
					{
						name:"DT Road",
						id:"MGIS_Layercontrol_Drawing_DTRoad",
						layers:["dtRoad"]
					},
					{
						name:"Traffic Count",
						id:"MGIS_Layercontrol_Drawing_Trafficcount",
						layers:["trafficcount"]
					}
    	        ]
            },
            {
            	name:"TD_TAS",
            	id:"MGIS_Layercontrol_TD_Overall",
            	layers:["SdOverall"]
            },
            {
				name:"Pipeline",
				layers:["pipelineMap"],
			     disabled:true
			},
			{
				name:"Focal Area",
				layers:["focalAreaMap"],
			     disabled:true
			},
			{
				name:"Minimarket",
				layers:["minimarketMap"],
			     disabled:true
			},
			{
				name:"Market",
				layers:["marketMap"],
			     disabled:true
			},
            {
            	name:"Picture",
            	layers:["picture"],
            	disabled:true
            },
            {
            	name:"MDS New Hub",
				id:"MGIS_Layercontrol_MDS_NewHub",
				layers:["mdsNewhub"]
            },
            {
            	name:"MDS Existing Hub",
             	subNodes:[
					    {
							name:"Existing Hub",
							id:"MGIS_Layercontrol_MDS_ExistingHub",
							layers:["mdsSa"]
						},
      					{
      						name:"Capacity",
      						id:"MGIS_Layercontrol_MDSHubCapacity_Capacity",
      						layers:["mdsHubCapacity"]
      					},
      					{
      						name:"Sales",
      						id:"MGIS_Layercontrol_MDSHubCapacity_Performace",
      						layers:["mdsHubPerformance"]
      					},
      					{
      						name:"Net Potential",
      						id:"MGIS_Layercontrol_MDSHubCapacity_NetPotential",
      						layers:["mdsHubNet"]
      					}
          	     ]
            },
            {
            	name:"MDS \ Sales Distr.",
            	subNodes:[
					{
						name:"Monthly",
						id:"MGIS_Layercontrol_MDSSalesDistr_Monthly",
						layers:["mds100mMonthly"]
					},
					{
						name:"Monthly Var.",
						id:"MGIS_Layercontrol_MDSSalesDistr_MonthlyVar",
						layers:["mds100mMonthlyVar"]
					},
					{
						name:"YTD",
						id:"MGIS_Layercontrol_MDSSalesDistr_Quarterly",
						layers:["mds100mYTD"]
					},
					{
						name:"TTM",
						id:"MGIS_Layercontrol_MDSSalesDistr_TTM",
						layers:["mds100mTTM"]
					},
					{
						name:"TTM Var.",
						id:"MGIS_Layercontrol_MDSSalesDistr_TTMVar",
						layers:["mds100mTTMVar"]
					}
    	        ]
            },
            {
            	name:"MDS City Capacity",
             	subNodes:[
      					{
      						name:"Capacity",
      						id:"MGIS_Layercontrol_MDSCityCapacity_Capacity",
      						layers:["mdsCityCapacity"]
      					},
      					{
      						name:"Sales",
      						id:"MGIS_Layercontrol_MDSCityCapacity_Performance",
      						layers:["mdsCityPerformance"]
      					},
      					{
      						name:"Net Potential",
      						id:"MGIS_Layercontrol_MDSCityCapacity_NetCapacity",
      						layers:["mdsCityNetCapacity"]
      					}
          	     ]
            },
            {
            	name:"Kernel Map",
            	subNodes:[
					{
						name:"Commercial",
						id:"MGIS_Layercontrol_KernelMap_Commercial",
						layers:["commercial"]
					},
					{
						name:"Permanent",
						id:"MGIS_Layercontrol_KernelMap_Permanent",
						layers:["mixTa"]
					},
					{
						name:"Specialty",
						id:"MGIS_Layercontrol_KernelMap_Specialty",
						layers:["specialty"]
					}
    	        ]
            },
            {
            	name:"Geo Boundary",
            	subNodes:[
					{
						name:"MM",
						id:"MGIS_Layercontrol_GeoBoundary_MM",
						layers:["mm"]
					},
					{
						name:"District",
						id:"MGIS_Layercontrol_GeoBoundary_District",
						layers:["district"]
					},
					{
						name:"City",
						id:"MGIS_Layercontrol_GeoBoundary_City",
						layers:["city"]
					},
					{
						name:"Market",
						id:"MGIS_Layercontrol_GeoBoundary_Market",
						layers:["market"]
					},
					{
						name:"Region",
						id:"MGIS_Layercontrol_GeoBoundary_Region",
						layers:["region"]
					}
    	        ]
            }
    ],
    layers:{
      labelLayer:{},
      pipeline_active:{type:"classify",scale:[2311163,0],width:28,height:33,offset:[4,17],iconBase:MGISURL+"/images/ppicons",
	  		codeField:"PPCode",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_PPData.ENSiteName",
			url:ARCGISSERVER+"/arcgis/rest/services/pipeline/MapServer/0",
			collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/pipeline/FeatureServer/0",
			param:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch')",
			init:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch')",
			testField:"PMT2.dbo.gis_PPData.StoreStatus_EnName",testValues:["Remain"],
			trueFields:["PMT2.dbo.gis_PPData.StoreType_EnName","PMT2.dbo.gis_PPData.Process_EnName"],
			falseFields:["PMT2.dbo.gis_PPData.StoreStatus_EnName","PMT2.dbo.gis_PPData.Process_EnName"],
			prefix:"PMT2.dbo.gis_PPData.",formPath:"widgets/formWindow/ppInfoCollectWidget/PPInfoCollectWidget",
			infoFormPath:"widgets/formWindow/ppInfoCoverWidget/PPInfoCoverWidget",
			infoCoverFormPath:"widgets/formWindow/ppInfoCoverWidget/PPInfoCoverWidget",
			canDelete:false,deleteRight:"MGIS_DataCollectionToolBar_PP_Map",
			outFields:["*"],isRender:true,renderindex:0,useTooltip:true,useright:true,
			tip:["PMT2.dbo.gis_PPData.PPCode",MGISURL+"/images/popicons/pp.png","PMT2.dbo.gis_PPData.ENSiteName",
			     "PMT2.dbo.gis_PPData.ActualOpenDate","PMT2.dbo.gis_PPData.Process_EnName,PMT2.dbo.gis_PPData.StoreStatus_EnName,PMT2.dbo.gis_PPData.StoreType_EnName",]},
      pipeline:{type:"classify",scale:[2311163,0],width:28,height:33,offset:[4,17],iconBase:MGISURL+"/images/ppicons",
    		codeField:"PPCode",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_PPData.ENSiteName",
    		url:ARCGISSERVER+"/arcgis/rest/services/pipeline/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/pipeline/FeatureServer/0",
    		param:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch','Killed','Redundant','Rejected','Opened')",
    		init:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch','Killed','Redundant','Rejected','Opened')",
    		testField:"PMT2.dbo.gis_PPData.StoreStatus_EnName",testValues:["Remain"],
    		trueFields:["PMT2.dbo.gis_PPData.StoreType_EnName","PMT2.dbo.gis_PPData.Process_EnName"],
    		falseFields:["PMT2.dbo.gis_PPData.StoreStatus_EnName","PMT2.dbo.gis_PPData.Process_EnName"],
    		prefix:"PMT2.dbo.gis_PPData.",formPath:"widgets/formWindow/ppInfoCollectWidget/PPInfoCollectWidget",
    		infoFormPath:"widgets/formWindow/ppInfoCoverWidget/PPInfoCoverWidget",
    		infoCoverFormPath:"widgets/formWindow/ppInfoCoverWidget/PPInfoCoverWidget",
    		canDelete:false,deleteRight:"MGIS_DataCollectionToolBar_PP_Map",useright:true,rejectlayer:["pipeline_active","store"],
			outFields:["*"],isRender:true,renderindex:0,useTooltip:true,
			tip:["PMT2.dbo.gis_PPData.PPCode",MGISURL+"/images/popicons/pp.png","PMT2.dbo.gis_PPData.ENSiteName",
			     "PMT2.dbo.gis_PPData.ActualOpenDate","PMT2.dbo.gis_PPData.Process_EnName,PMT2.dbo.gis_PPData.StoreStatus_EnName,PMT2.dbo.gis_PPData.StoreType_EnName"]},
	    pipelineCluster:{type:"cluster",scale:[591657527,2311163],labelColor:"#fff",labelOffset:15,distance:100,iconBase:MGISURL+"/images/cluster/pp/",
	    	   breakrender:[{from:1,to:10,width:32,height:32,iconname:"level1.png"},{from:10,to:100,width:48,height:48,iconname:"level2.png"},{from:100,to:1000,width:56,height:56,iconname:"level3.png"},
	    	   {from:1000,to:10000,width:72,height:72,iconname:"level4.png"},{from:10000,to:100000,width:96,height:96,iconname:"level5.png"}]},
		picture:{type:"image",scale:[2311163,0],width:22,height:22,offset:[0,11],iconBase:MGISURL+"/images/main/picture.png",
			url:ARCGISSERVER+"/arcgis/rest/services/pipeline/MapServer/0",
    		param:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch','Killed','Redundant','Rejected','Opened')",
    		prefix:"PMT2.dbo.gis_PPData.",canDelete:false,
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_PPData.ENSiteName","PMT2.dbo.gis_PPData.SigningDate"],
    		codeField:"PPCode",useright:true,
    		outFields:["PMT2.dbo.gis_PPData.PPCode","PMT2.dbo.gis_PPData.ENSiteName","PMT2.dbo.gis_PPData.SigningDate"]
			},
	    storeCluster:{type:"cluster",scale:[591657527,2311163],labelColor:"#fff",labelOffset:15,distance:100,iconBase:MGISURL+"/images/cluster/store/",
		    	   breakrender:[{from:1,to:10,width:32,height:32,iconname:"level1.png"},{from:10,to:100,width:48,height:48,iconname:"level2.png"},{from:100,to:1000,width:56,height:56,iconname:"level3.png"},
		    	 	    	   {from:1000,to:10000,width:72,height:72,iconname:"level4.png"},{from:10000,to:100000,width:96,height:96,iconname:"level5.png"}]},
		store:{type:"classify",scale:[2311163,0],width:28,height:33,offset:[4,17],iconBase:MGISURL+"/images/storeicons",
    		url:ARCGISSERVER+"/arcgis/rest/services/store/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/store/FeatureServer/0",
    		formPath:"widgets/formWindow/storeInfoWidget/StoreInfoWidget",
    		infoCoverFormPath:"widgets/formWindow/storeInfoCoverWidget/storeInfoCoverWidget",
    		param:"0=0",
    		testField:"PMT2.dbo.gis_StoreData.StoreStatus_EnName",testValues:["Opened"],
    		trueFields:["PMT2.dbo.gis_StoreData.StoreType_EnName"],
    		falseFields:["PMT2.dbo.gis_StoreData.StoreStatus_EnName"],
    		prefix:"PMT2.dbo.gis_StoreData.",
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_StoreData.StoreNameEn","PMT2.dbo.gis_StoreData.OpenDate"],
    		canDelete:false,labelField:"PMT2.dbo.gis_StoreData.StoreNameEn",
    		deleteRight:"MGIS_DataCollectionToolBar_Store_Map",codeField:"StoreCode",
    		outFields:["*"],isRender:true,renderindex:1,useTooltip:true,useright:true,rejectlayer:["pipeline_active","pipeline"],
			tip:["PMT2.dbo.gis_StoreData.StoreCode",MGISURL+"/images/popicons/mcd.png","PMT2.dbo.gis_StoreData.StoreNameEn",
			     "PMT2.dbo.gis_StoreData.OpenDate","PMT2.dbo.gis_StoreData.NetProductSales num"]},
		storeEntity:{type:"classify",scale:[2311163,0],width:28,height:33,offset:[4,17],iconBase:MGISURL+"/images/storeicons",
			url:ARCGISSERVER+"/arcgis/rest/services/STORE_ENTITY/storeEntity/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/store/FeatureServer/0",
    		formPath:"widgets/formWindow/storeInfoWidget/StoreInfoWidget",
    		infoCoverFormPath:"widgets/formWindow/storeInfoCoverWidget/storeInfoCoverWidget",
    		param:"0=0",
    		testField:"PMT2.dbo.gis_StoreData.StoreStatus_EnName",testValues:["Opened"],
    		trueFields:["PMT2.dbo.gis_StoreData.StoreType_EnName"],
    		falseFields:["PMT2.dbo.gis_StoreData.StoreStatus_EnName"],
    		prefix:"PMT2.dbo.gis_StoreData.",
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_StoreData.StoreNameEn","PMT2.dbo.gis_StoreData.OpenDate"],
    		canDelete:false,labelField:"PMT2.dbo.gis_StoreData.StoreNameEn",
    		deleteRight:"MGIS_DataCollectionToolBar_Store_Map",codeField:"StoreCode",
    		outFields:["*"],isRender:true,renderindex:1,useTooltip:true,useright:true,rejectlayer:["pipeline_active","pipeline"],
			tip:["PMT2.dbo.gis_StoreData.StoreCode",MGISURL+"/images/popicons/mcd.png","PMT2.dbo.gis_StoreData.StoreNameEn",
			     "PMT2.dbo.gis_StoreData.OpenDate","PMT2.dbo.gis_StoreData.NetProductSales num","MGIS.dbo.V_CL_MASTER_STORE_ABBR.TRANSFER_DATE"]},
		storeEntityAbbr:{type:"CL",scale:[2311163,0],width:28,height:33,offset:[0,18],iconBase:MGISURL+"/images/storeicons",
			url:ARCGISSERVER+"/arcgis/rest/services/STORE_ENTITY/storeEntity/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/store/FeatureServer/0",
    		formPath:"widgets/formWindow/storeInfoWidget/StoreInfoWidget",
    		infoCoverFormPath:"widgets/formWindow/storeInfoCoverWidget/storeInfoCoverWidget",
    		param:"0=0",
    		testField:"PMT2.dbo.gis_StoreData.StoreStatus_EnName",testValues:["Opened"],
    		trueFields:["PMT2.dbo.gis_StoreData.StoreType_EnName"],
    		falseFields:["MGIS.dbo.V_CL_MASTER_STORE_ABBR.NAME_ABBREVIATION"],
    		prefix:"PMT2.dbo.gis_StoreData.",
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_StoreData.StoreNameEn","PMT2.dbo.gis_StoreData.OpenDate"],
    		canDelete:false,labelField:"PMT2.dbo.gis_StoreData.StoreNameEn",
    		deleteRight:"MGIS_DataCollectionToolBar_Store_Map",codeField:"StoreCode",
    		outFields:["*"],isRender:true,renderindex:1,useTooltip:true,useright:true,rejectlayer:["pipeline_active","pipeline"],
			tip:["PMT2.dbo.gis_StoreData.StoreCode",MGISURL+"/images/popicons/mcd.png","PMT2.dbo.gis_StoreData.StoreNameEn",
			     "PMT2.dbo.gis_StoreData.OpenDate","PMT2.dbo.gis_StoreData.NetProductSales num","MGIS.dbo.V_CL_MASTER_STORE_ABBR.TRANSFER_DATE"]},
    	taStore:{type:"polygon",scale:[288896,0],style:"solid",color:[0,153,225,0.1],lineColor:[0,153,225,1],lineWeight:1.5,
    		url:ARCGISSERVER+"/arcgis/rest/services/Store_TA/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Store_TA/FeatureServer/0",
    		param:"PMT2.dbo.gis_TAData.flag='Active'",
    		formPath:"widgets/formWindow/taInfoWidget/TAInfoWidget",
    		prefix:"PMT2.dbo.gis_TAData.",codeField:"TACode",mmcodeField:"mmcode",
    		labelField:"PMT2.dbo.gis_TAData.Name",
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_TAData.Name"],useright:true,
    		canDelete:false,deleteRight:"MGIS_DataCollectionToolBar_Drawing_TAStore_Map",outFields:["*"],
    		tip:["PMT2.dbo.gis_TAData.TACode",null,"PMT2.dbo.gis_TAData.Name",null,null]},
    	taPipeline:{type:"polygon",scale:[288896,0],style:"solid",color:[0,153,225,0.1],lineColor:[0,153,225,1],lineWeight:1.5,lineStyle:"shortdash",
    		url:ARCGISSERVER+"/arcgis/rest/services/Pipeline_TA/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Pipeline_TA/FeatureServer/0",
    		param:"PMT2.dbo.gis_TAData.flag='Active'",
    		prefix:"PMT2.dbo.gis_TAData.",
    		formPath:"widgets/formWindow/taInfoWidget/TAInfoWidget",codeField:"TACode",mmcodeField:"mmcode",
    		labelField:"PMT2.dbo.gis_TAData.Name",
    		useTooltip:true,toolTipFields:["PMT2.dbo.gis_TAData.Name"],useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_TAPipeline_Map",outFields:["*"],
    	    tip:["PMT2.dbo.gis_TAData.TACode",null,"PMT2.dbo.gis_TAData.Name",null,null]},
    	focalArea:{type:"polygon",scale:[288896,0],style:"solid",color:[255,0,0,0.0],lineColor:[255,0,0,1],lineWeight:2,lineStyle:"shortdash",
    		url:ARCGISSERVER+"/arcgis/rest/services/FA/MapServer/0",prefix:"PMT2.dbo.gis_FAData.",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/FA/FeatureServer/0",
    		param:"PMT2.dbo.gis_FAData.flag = 'Active'",
    		formPath:"widgets/formWindow/faInfoWidget/FAInfoWidget",codeField:"FA_ID",mmcodeField:"mmcode",
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_FA_Map",useright:true,
    		useTooltip:true,outFields:["*"],
            tip:["PMT2.dbo.gis_FAData.FA_ID",null,"PMT2.dbo.gis_FAData.FAName",null,"PMT2.dbo.gis_FAData.EstimatedSales num"]},
    	competitor:{url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",    		
    		 outFields:["*"],prefix:"PMT2.dbo.gis_CompetitorData.",param:"PMT2.dbo.gis_CompetitorData.flag = 'Active'"},
    	kfc:{type:"picture",scale:[2311163,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/kfc.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'KFC' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'KFC',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    		outFields:["*"]},
        pizzahut:{type:"picture",scale:[2311163,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/pizzahut.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'PizzaHut' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'PizzaHut',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    		outFields:["*"]},
        dicos:{type:"picture",scale:[2311163,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/dicos.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'dicos' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'dicos',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
			outFields:["*"]},
        dfjb:{type:"picture",scale:[1155582,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/dfjb.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'DFJB' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'DFJB',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    		outFields:["*"]},
        burgerking:{type:"picture",scale:[2311163,0],width:21,height:20,offset:[0,10],icon:MGISURL+"/images/mapicons/burgerking.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'BurgerKing' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'BurgerKing',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    		outFields:["*"]},
        yonghe:{type:"picture",scale:[2311163,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/yongheking.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'Yonghe' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    		name:'Yonghe',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    		outFields:["*"]},
        other:{type:"picture",scale:[2311163,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/competitor_other.png",
    	    		url:ARCGISSERVER+"/arcgis/rest/services/Competitor/MapServer/0",
    	    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Competitor/FeatureServer/0",
    	    		param:"PMT2.dbo.gis_CompetitorData.Chain_Name = 'Other' and  Status in ('suoya301004','suoya625827') and PMT2.dbo.gis_CompetitorData.flag = 'Active'",
    	    		formPath:"widgets/formWindow/competitorInfoWidget/CompetitorInfoWidget",
    	    		prefix:"PMT2.dbo.gis_CompetitorData.",labelField:"PMT2.dbo.gis_CompetitorData.Name",
    	    		codeField:"CompetitorID",mmcodeField:"mmcode",useright:true,
    	    		name:'Other',useTooltip:true,tip:["PMT2.dbo.gis_CompetitorData.CompetitorID",null,"PMT2.dbo.gis_CompetitorData.Name",null,"PMT2.dbo.gis_CompetitorData.AnnualAvgSales num"],
    	    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Competitor_Map",
    	    		outFields:["*"]},
    	home_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/home.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/0",
    		param:"PMT2.dbo.gis_GeneratorHomeData.flag = 'Active'",
    		formPath:"widgets/formWindow/homeInfoWidget/HomeInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",useright:true,
    		prefix:"PMT2.dbo.gis_GeneratorHomeData.",labelField:"PMT2.dbo.gis_GeneratorHomeData.GeneratorName",
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Home_Map",
    		useTooltip:false,
    		outFields:["*"]
    	},
    	home_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[251,178,23,0.5],lineColor:[220,87,18,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/1",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/1",
    		param:"PMT2.dbo.gis_GeneratorHomeData.flag = 'Active'",
    		formPath:"widgets/formWindow/homeInfoWidget/HomeInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",useright:true,
    		prefix:"PMT2.dbo.gis_GeneratorHomeData.",labelField:"PMT2.dbo.gis_GeneratorHomeData.GeneratorName",
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Home_Map",
    		
    		outFields:["*"]
    	},
    	work_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/work.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/2",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/2",
    		param:"PMT2.dbo.gis_GeneratorWorkData.flag = 'Active'",
    		formPath:"widgets/formWindow/workInfoWidget/WorkInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorWorkData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorWorkData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Work_Map",
    		outFields:["*"]
    	},
    	
    	work_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[0,102,153,0.5],lineColor:[0,102,153,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/3",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/3",
    		param:"PMT2.dbo.gis_GeneratorWorkData.flag = 'Active'",
    		formPath:"widgets/formWindow/workInfoWidget/WorkInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorWorkData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorWorkData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Work_Map",
    		outFields:["*"]
    	},
    	shop_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/shop.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/4",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/4",
    		param:"PMT2.dbo.gis_GeneratorShopData.flag = 'Active'",
    		formPath:"widgets/formWindow/shopInfoWidget/ShopInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorShopData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorShopData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Shop_Map",
    		outFields:["*"]
    	},
    	shop_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[252,157,154,0.5],lineColor:[254,67,101,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/5",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/5",
    		param:"PMT2.dbo.gis_GeneratorShopData.flag = 'Active'",
    		formPath:"widgets/formWindow/shopInfoWidget/ShopInfoWidget",
    		mmcodeField:"mmcode",codeField:"GeneratorID",labelField:"PMT2.dbo.gis_GeneratorShopData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorShopData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Shop_Map",
    		outFields:["*"]
    	},
    	school_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/school.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/6",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/6",
    		param:"PMT2.dbo.gis_GeneratorSchoolData.flag = 'Active'",
    		formPath:"widgets/formWindow/schoolInfoWidget/SchoolInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorSchoolData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorSchoolData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_School_Map",
    		outFields:["*"]
    		
    	},
    	school_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[174,221,129,0.5],lineColor:[107,194,53,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/7",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/7",
    		param:"PMT2.dbo.gis_GeneratorSchoolData.flag = 'Active'",
    		formPath:"widgets/formWindow/schoolInfoWidget/SchoolInfoWidget",
    		mmcodeField:"mmcode",codeField:"GeneratorID",labelField:"PMT2.dbo.gis_GeneratorSchoolData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorSchoolData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_School_Map",
    		outFields:["*"]
    	},
    	thub_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/thub.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/8",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/8",
    		param:"PMT2.dbo.gis_GeneratorTHubData.flag = 'Active'",
    		formPath:"widgets/formWindow/thubInfoWidget/THubInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorTHubData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorTHubData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_T-Hub_Map",
    		outFields:["*"]
    	},
    	thub_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[178,200,187,0.5],lineColor:[69,137,148,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/9",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/9",
    		param:"PMT2.dbo.gis_GeneratorTHubData.flag = 'Active'",
    		formPath:"widgets/formWindow/thubInfoWidget/THubInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorTHubData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorTHubData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_T-Hub_Map",
    		outFields:["*"]
    	},
    	leisure_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/leisure.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/10",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/10",
    		param:"PMT2.dbo.gis_GeneratorLeisureData.flag = 'Active'",
    		formPath:"widgets/formWindow/leisureInfoWidget/LeisureInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorLeisureData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorLeisureData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Leisure_Map",
    		outFields:["*"]
    	},
    	leisure_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[255,125,255,0.5],lineColor:[255,13,255,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/11",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/11",
    		param:"PMT2.dbo.gis_GeneratorLeisureData.flag = 'Active'",
    		formPath:"widgets/formWindow/leisureInfoWidget/LeisureInfoWidget",
    		codeField:"GeneratorID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_GeneratorLeisureData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorLeisureData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Leisure_Map",
    		outFields:["*"]
    	},
    	other_point:{type:"picture",scale:[144448,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/other.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/12",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/12",
    		param:"PMT2.dbo.gis_GeneratorOtherData.flag='Active'",
    		formPath:"widgets/formWindow/otherInfoWidget/OtherInfoWidget",
    		mmcodeField:"mmcode",codeField:"GeneratorID",labelField:"PMT2.dbo.gis_GeneratorOtherData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorOtherData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Other_Map",
    		outFields:["*"]
    	},
    	other_polygon:{type:"polygon",scale:[144448,0],style:"solid",color:[197,138,79,0.5],lineColor:[147,98,49,1],lineWeight:1,
    		url:ARCGISSERVER+"/arcgis/rest/services/Generator/MapServer/13",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Generator/FeatureServer/13",
    		param:"PMT2.dbo.gis_GeneratorOtherData.flag='Active'",
    		formPath:"widgets/formWindow/otherInfoWidget/OtherInfoWidget",
    		mmcodeField:"mmcode",codeField:"GeneratorID",labelField:"PMT2.dbo.gis_GeneratorOtherData.GeneratorName",
    		prefix:"PMT2.dbo.gis_GeneratorOtherData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Generator_Other_Map",
    		outFields:["*"]
    	},
    	metroStation:{type:"picture",scale:[36112,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/metrostation.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Enabler/MapServer/1",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Enabler/FeatureServer/0",
    		param:"PMT2.dbo.gis_MetroStationData.flag = 'Active'",
    		formPath:"widgets/formWindow/metroStationInfoWidget/MetroStationInfoWidget",
    		codeField:"MetroStationID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_MetroStationData.EnablerName",
    		prefix:"PMT2.dbo.gis_MetroStationData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Enabler_MetroStation_Map",
    		outFields:["*"]
    	},
    	busStop:{type:"picture",scale:[36112,0],width:21,height:21,offset:[0,11],icon:MGISURL+"/images/mapicons/busstop.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/Enabler/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/Enabler/FeatureServer/1",
    		param:"PMT2.dbo.gis_BusStopData.flag = 'Active'",
    		formPath:"widgets/formWindow/busStopInfoWidget/BusStopInfoWidget",
    		codeField:"BusStopID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_BusStopData.EnablerName",
    		prefix:"PMT2.dbo.gis_BusStopData.",useTooltip:false,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Enabler_BusStop_Map",
    		outFields:["*"]
    	},
    	futureKeyPOI:{type:"picture",scale:[36112,0],width:28,height:36,offset:[0,8],icon:MGISURL+"/images/main/poi.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/futurekeypoi/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/futurekeypoi/FeatureServer/0",
    		param:"PMT2.dbo.gis_FutureKeyPOIData.flag = 'Active'",
    		formPath:"widgets/formWindow/poiInfoWidget/PoiInfoWidget",
    		codeField:"FutureKeyPOI_ID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_FutureKeyPOIData.Name",
    		prefix:"PMT2.dbo.gis_FutureKeyPOIData.",useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_FKP_Map",
    		useTooltip:false,toolTipFields:["PMT2.dbo.gis_FutureKeyPOIData.Name","PMT2.dbo.gis_FutureKeyPOIData.OpenYear"],
    		outFields:["*"]
    	},
    	mdsSa:{type:"polygon",scale:[577791,0],style:"solid",color:[107,240,60,0.1],lineColor:[0,128,0,1],lineWeight:2,
    		url:ARCGISSERVER+"/arcgis/rest/services/MDS/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/MDS/FeatureServer/0",
    		param:"0=0",
    		formPath:"widgets/formWindow/MdsExistingHubInfoWidget/MdsExistingHubInfoWidget",
    		labelField:"sde.DBO.MdsSA.UsCode",useright:true,
    		prefix:"PMT2.dbo.gis_Hierarchy.",prefix2:"sde.DBO.MdsSA.",useTooltip:true,tip:["sde.DBO.MdsSA.UsCode",null,"sde.DBO.MdsSA.StoreName",null,"sde.DBO.MdsSA.Performance num"],
    		canDelete:false,deleteRight:"MGIS_DataCollectionToolBar_Drawing_MDS-SA_Map",
    		outFields:["*"]
    	},
    	SdOverall:{type:"basemap",scale:[9028,0],url:ARCGISSERVER+"/arcgis/rest/services/SD_Overall/MapServer"},
    	overall:{type:"basemap",alpha:0.8,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/intensityOverall/MapServer"},
    	commercial:{type:"basemap",alpha:0.8,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/intensityCommercial/MapServer"},
    	mixTa:{type:"basemap",alpha:0.8,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/intensityMix/MapServer"},
    	specialty:{type:"basemap",alpha:0.8,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/intensitySpecialty/MapServer"},
    	mm:{type:"polygon",scale:[577791,18055],pbnnaram:"",useright:false,canDelete:false,
    		formPath:"widgets/formWindow/mmInfoWidget/MMInfoWidget",
    		url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_MM/MapServer/0",prefix:"PMT2.dbo.gis_Hierarchy.",codeField:"MM_Type_Code",
    		outFields:["*"]},
		district:{type:"basemap",scale:[4622324,72224],
    		url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_District/MapServer",
    		outFields:["*"]},
    	city:{type:"basemap",scale:[591657528,1155581],
    		url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_City/MapServer",
    		outFields:["*"]},
		market:{type:"basemap",scale:[591657528,2311162],
    		url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_Market/MapServer"},	
    	region:{type:"basemap",scale:[591657528,18489297],url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_Region/MapServer"},
    	dtRoad:{type:"polyline",scale:[36112,0],width:2,style:"solid",color:[255,0,0,1],
    		url:ARCGISSERVER+"/arcgis/rest/services/DTRoad/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/DTRoad/FeatureServer/0",
    		param:"PMT2.dbo.gis_DTRoadData.flag= 'Active'",
    		formPath:"widgets/formWindow/dtroadInfoWidget/DtRoadInfoWidget",
    		prefix:"PMT2.dbo.gis_DTRoadData.",useTooltip:false,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_DT-Road_Map",
    		codeField:"DTRoadID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_DTRoadData.DTRoadName",
    		outFields:["*"]
    	},
       serviceArea:{formPath:"widgets/formWindow/saInfoWidget/SAInfoWidget",mmcodeField:"mmcode"},
       pipelineMap:{type:"base",scale:[2311163,0],width:53,height:45,offset:[13,22],icon:"images/iframe/unfoldIcon.png",
    	    url:ARCGISSERVER+"/arcgis/rest/services/pipeline/MapServer/0",
	   		param:"PMT2.dbo.gis_PPData.StoreStatus_EnName in ('Remain','Watch','Killed','Redundant','Rejected','Opened')",
	   		formPath:"",
			prefix:"PMT2.dbo.gis_PPData.",init:"0=1",
			codeField:"PPCode",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_PPData.ENSiteName",
			canDelete:false,useTooltip:false,toolTipFields:["PMT2.dbo.gis_PPData.ENSiteName","PMT2.dbo.gis_PPData.SigningDate"],
			outFields:["*"]},
	   minimarketMap:{type:"base",scale:[2311163,0],init:"0=1",alpha:0.9,useright:false,
   			url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_MM/MapServer/0",outFields:["*"],isDynRender:true,valuename:"sde.DBO.MM.MMName_EN"},
	   focalAreaMap:{type:"base",scale:[2311163,0],style:"solid",color:[112,48,160,0.9],lineColor:[112,48,160,0],lineWeight:0,
		   	url:ARCGISSERVER+"/arcgis/rest/services/FA/MapServer/0",
	   		param:"PMT2.dbo.gis_FAData.flag = 'Active'",prefix:"PMT2.dbo.gis_FAData.",
			formPath:"",prefix:"PMT2.dbo.gis_FAData.",
			codeField:"FA_ID",mmcodeField:"mmcode",canDelete:false,
			useTooltip:false,toolTipFields:["PMT2.dbo.gis_FAData.FAName","PMT2.dbo.gis_FAData.OpenYear",
		                               "PMT2.dbo.gis_FAData.FAPriority gis_FAData-FAPriority"],
            outFields:["*"],isDynRender:true,valuename:"sde.DBO.FA.FA_ID"
		},
   	   marketMap:{type:"multi",scale:[73957191,1155581],outFields:["*"],init:"0=1",useright:false,
   		   url:ARCGISSERVER+"/arcgis/rest/services/ChinaGeoBoundary_Market/MapServer/0",isDynRender:true,valuename:"MARKET"},
   	   faTA:{type:"polygon",scale:[288896,0],style:"solid",color:[255,0,0,0.1],lineColor:[255,0,0,1],lineWeight:2,
   		    url:ARCGISSERVER+"/arcgis/rest/services/FATA/MapServer/0",prefix:"PMT2.dbo.gis_FATAData.",
   		    collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/FATA/FeatureServer/0",
   		    param:"PMT2.dbo.gis_FATAData.flag = 'Active'",
   		    formPath:"widgets/formWindow/faTAInfoWidget/FATAInfoWidget",codeField:"FATAID",mmcodeField:"mmcode",
   		    canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_FATA_Map",
   		    useTooltip:true,outFields:["*"],useright:true,
   		    tip:["PMT2.dbo.gis_FATAData.FATAID",null,"PMT2.dbo.gis_FATAData.Name",null,null]
           },
   	   strategyPoint:{type:"picture",scale:[36112,0],width:20,height:20,offset:[0,8],icon:MGISURL+"/images/mapicons/SP.png",
	   		url:ARCGISSERVER+"/arcgis/rest/services/StrategyPoint/MapServer/0",
			collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/StrategyPoint/FeatureServer/0",
			param:"PMT2.dbo.gis_StrategyPointData.flag = 'Active'",
			formPath:"widgets/formWindow/strategyPointInfoWidget/StrategyPointInfoWidget",
			codeField:"StrategyPointID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_StrategyPointData.Name",
			prefix:"PMT2.dbo.gis_StrategyPointData.",useright:true,
			canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_Strategy-Point_Map",
			useTooltip:true,outFields:["*"],
			tip:["PMT2.dbo.gis_StrategyPointData.StrategyPointID",null,"PMT2.dbo.gis_StrategyPointData.Name",null,"PMT2.dbo.gis_StrategyPointData.EstimatedSales num"]
   		    },
   	    trafficcount:{type:"picture",scale:[36112,0],width:40,height:40,offset:[0,8],icon:MGISURL+"/images/mapicons/tc.png",
	   		url:ARCGISSERVER+"/arcgis/rest/services/TrafficCount/MapServer/0",
			collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/TrafficCount/FeatureServer/0",
			param:"PMT2.dbo.gis_sdeTrafficCountData.flag = 'Active'",
			formPath:"widgets/formWindow/trafficCountInfoWidget/TrafficCountInfoWidget",
			codeField:"TrafficCountID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_sdeTrafficCountData.Name",
			prefix:"PMT2.dbo.gis_sdeTrafficCountData.",
			canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_TrafficCount_Map",useright:true,
			useTooltip:false,outFields:["*"]
   		 },
   		 mdsNewhub:{type:"polygon",scale:[577791,0],style:"solid",color:[102,255,51,0.1],lineColor:[102,255,51,1],lineWeight:1.5,lineStyle:"shortdash",
    		url:ARCGISSERVER+"/arcgis/rest/services/MdsNewHub/MapServer/0",
    		collectUrl:ARCGISSERVER+"/arcgis/rest/services/feature/MdsNewHub/FeatureServer/0",
    		param:"PMT2.dbo.gis_MDSNewHubData.flag = 'Active'",
    		formPath:"widgets/formWindow/MdsNewHubInfoWidget/MdsNewHubInfoWidget",
    		codeField:"NewHubID",mmcodeField:"mmcode",labelField:"PMT2.dbo.gis_MDSNewHubData.Name_CN",
    		prefix:"PMT2.dbo.gis_MDSNewHubData.",useTooltip:true,useright:true,
    		canDelete:true,deleteRight:"MGIS_DataCollectionToolBar_Drawing_MDSNewHub_Map",
    		outFields:["*"],
    		tip:["PMT2.dbo.gis_MDSNewHubData.NewHubID",null,"PMT2.dbo.gis_MDSNewHubData.Name_CN",null,null]
    	  },
    	
    	
    	
    	mdsHubCapacity:{type:"polygon",scale:[577791,0],alpha:0.6,
    	    url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSHubCapacity_Capacity/MapServer/0",
    		param:"0=0",formPath:"widgets/formWindow/MdsExistingHubInfoWidget/MdsExistingHubInfoWidget",
    		prefix:"PMT2.dbo.gis_Hierarchy.",prefix2:"sde.DBO.MdsSA.",useTooltip:false,useright:true,
    		canDelete:false,outFields:["*"]
    	},
    	mdsHubPerformance:{type:"polygon",scale:[577791,0],alpha:0.6,
    		url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSHubCapacity_Performance/MapServer/0",
    		param:"0=0",formPath:"widgets/formWindow/MdsExistingHubInfoWidget/MdsExistingHubInfoWidget",
    		labelField:"MGIS.dbo.gis_MdsSAData.StoreCode",prefix:"PMT2.dbo.gis_Hierarchy.",prefix2:"sde.DBO.MdsSA.",useTooltip:false,useright:true,
    		canDelete:false,outFields:["*"]
    	},
    	mdsHubNet:{type:"polygon",scale:[577791,0],alpha:0.6,
    		url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSHubCapacity_NetPotential/MapServer/0",
    		param:"0=0",formPath:"widgets/formWindow/MdsExistingHubInfoWidget/MdsExistingHubInfoWidget",
    		labelField:"MGIS.dbo.gis_MdsSAData.StoreCode",prefix:"PMT2.dbo.gis_Hierarchy.",prefix2:"sde.DBO.MdsSA.",useTooltip:false,useright:true,
    		canDelete:false,outFields:["*"]
    	},
    	mdsCityCapacity:{type:"basemap",alpha:0.7,scale:[8388608,262144],codeField:"OBJECTID", prefix:"", url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSCityCapacity_Total/MapServer"},
    	mdsCityPerformance:{type:"basemap",alpha:0.7,scale:[8388608,262144],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSCityCapacity_Actual/MapServer"},
    	mdsCityNetCapacity:{type:"basemap",alpha:0.7,scale:[8388608,262144],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSCityCapacity_Net/MapServer"},
    	
    	mds100mMonthly:{type:"basemap",alpha:0.7,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSSalesDistrict_Month/MapServer"},
    	mds100mMonthlyVar:{type:"basemap",alpha:0.7,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSSalesDistrict_MonthVariance/MapServer"},
    	mds100mYTD:{type:"basemap",alpha:0.7,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSSalesDistrict_YTD/MapServer"},
    	mds100mTTM:{type:"basemap",alpha:0.7,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSSalesDistrict_TTM/MapServer"},
    	mds100mTTMVar:{type:"basemap",alpha:0.7,scale:[577791,0],url:ARCGISSERVER+"/arcgis/rest/services/MDS/MDSSalesDistrict_TTMVariance/MapServer"},
    	
    	storeCL:{type:"clclassify",scale:[2311163,0],width:28,height:33,offset:[4,17],iconBase:MGISURL+"/images/main/cl.png",
    		url:ARCGISSERVER+"/arcgis/rest/services/STORE_ENTITY/storeEntity/MapServer/0",
    		param:"0=0",outFields:["*"],isRender:true,renderindex:1,useTooltip:true,
    		tip:["PMT2.dbo.gis_StoreData.StoreCode",MGISURL+"/images/popicons/mcd.png","PMT2.dbo.gis_StoreData.StoreNameEn",
			     "PMT2.dbo.gis_StoreData.OpenDate","PMT2.dbo.gis_StoreData.NetProductSales num"]}
    	
    },
    services:{
    	envelope_url:"/mgis/service/getExtentCoordByWhere",
    	geometryServer:ARCGISSERVER+"/arcgis/rest/services/Utilities/Geometry/GeometryServer",
    	fileupload_url:"/mgis/services/fileservice/uploadfile",
    	imgupload_url:"/mgis/services/imgservice/uploadimg",
    	address_url:"/mgis/services/queryservice/address",
    	serviceArea:"http://service.arcgisonline.cn/search/0d662add244252013d54762ea1e84da5e449ce3e0b167590416b53c53bb118f3/ServiceArea",
    	printServer:ARCGISSERVER+"/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task/execute",
    	poiServer:ARCGISSERVER+"/arcgis/rest/services/POI/MapServer/0",
    	housePriceServer:"http://beta.arcgisonline.cn/5bd25738f122da062a8c0bf525aae946e0a1f6d08731d2d1a4f69cce3deaceeb/staticservice/regionstatic",//"http://192.168.120.72/rest/services/staticservice/regionstatic",
    	mdsPositionServer:ARCGISSERVER+"/arcgis/rest/services/MdsPosition/MapServer/0"
    },
    
    legend:{
    	pipeline_active:{type:"picture",mutex:"0",link:"linkedout",iconPath:"/mgis/images/legend/pp/", property:[{name:"Remain_IS",iconName:"remain_IS.png"},
           	 	           {name:"Remain_DT",iconName:"remain_DT.png"},{name:"Killed",iconName:"killed.png"},
           	 	           {name:"Other",iconName:"other.png"}]},
    	pipeline:{type:"picture",mutex:"0",link:"linkedout",iconPath:"/mgis/images/legend/pp/", property:[{name:"Remain_IS",iconName:"remain_IS.png"},
   	 	           {name:"Remain_DT",iconName:"remain_DT.png"},{name:"Killed",iconName:"killed.png"},
   	 	           {name:"Other",iconName:"other.png"}]},
   	 	store:{type:"picture",iconPath:"/mgis/images/legend/store/", property:[{name:"Opened_IS",iconName:"opened_IS.png"},
  	 	           {name:"Opened_DT",iconName:"opened_DT.png"},{name:"Temp Closure",iconName:"temp_closure.png"},
  	 	           {name:"Closed",iconName:"closed.png"}]},
  	 	           
        taStore:{type:"color",link:"linkedout"},
  	 	taPipeline:{type:"color",link:"linkedout"},
  	 	
  	 	strategyPoint:{type:"picture",link:"linkedout"},
  	 	focalArea:{type:"color",link:"linkedout"},
  	 	faTA:{type:"color",link:"linkedout"},
  	 	
  	 	kfc:{type:"picture",link:"linkedout"},
  	 	pizzaHut:{type:"picture",link:"linkedout"},
  	 	dicos:{type:"picture",link:"linkedout"},
  	 	dfjb:{type:"picture",link:"linkedout"},
  	 	burgerKing:{type:"picture",link:"linkedout"},
  	 	yhdw:{type:"picture",link:"linkedout"},
  	 	other:{type:"picture",link:"linkedout"},
  	 	
  	 	home_point:{type:"picture"},
  	 	home_polygon:{type:"color"},
  	 	work_point:{type:"picture"},
  	 	work_polygon:{type:"color"},
  	 	shop_point:{type:"picture"},
  	 	shop_polygon:{type:"color"},
  	 	school_point:{type:"picture"},
  	 	school_polygon:{type:"color"},
  	 	thub_point:{type:"picture"},
  	 	thub_polygon:{type:"color"},
  	 	leisure_point:{type:"picture"},
  	 	leisure_polygon:{type:"color"},
  	 	other_point:{type:"picture"},
  	 	other_polygon:{type:"color"},
  	 	
  	 	metroStation:{type:"picture",link:"linkedout"},
  	 	busStop:{type:"picture",link:"linkedout"},
  	 	
  	 	dtRoad:{type:"color",link:"linkedout"},
  	 	trafficcount:{type:"picture",link:"linkedout"},
  	 	
  	 	SdOverall:{type:"rest"},
  	 	
  	 	pipelineMap:{type:"thematic"},
		minimarketMap:{type:"thematic"},
		focalAreaMap:{type:"thematic",Commafy:"false"},//不用千位符显示
		marketMap:{type:"thematic"},
  	 	
  	 	mdsNewhub:{type:"color"},
  	 	
  	 	mdsSa:{type:"color",link:"linkedout"},
  	 	mdsHubCapacity:{type:"rest"},
  	 	mdsHubPerformance:{type:"rest"},
  	 	mdsHubNet:{type:"rest"},
  	 	
  	 	mds100mMonthly:{type:"rest"},
  	 	mds100mMonthlyVar:{type:"rest"},
  	 	mds100mYTD:{type:"rest"},
  	 	mds100mTTM:{type:"rest"},
  	 	mds100mTTMVar:{type:"rest"},
		
  	 	mdsCityCapacity:{type:"rest"},
  	 	mdsCityPerformance:{type:"rest"},
  	 	mdsCityNetCapacity:{type:"rest"},
  	 	
  	 	commercial:{type:"rest"},
  	 	mixTa:{type:"rest"},
  	 	specialty:{type:"rest"},
  	 	
  	 	mm:{type:"rest",link:"linkedout"},
  	 	district:{type:"rest",link:"linkedout"},
  	 	city:{type:"rest",link:"linkedout"},
  	 	market:{type:"rest"},
  	 	region:{type:"rest"},
  	 	
    },
    
    /**
     * 高级查询查询条件
     */
    advanceSearch:
    	[{
        	name:"PP",
        	searchfield:[
        	             {name:'Pipeline ID',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.PPCode',fieldname2:'PPCode'},
                         {name:'Pipeline Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.CNSiteName,PMT2.dbo.gis_PPData.ENSiteName',fieldname2:'CNSiteName,ENSiteName'},
                         {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.Region_Type_Name,PMT2.dbo.gis_PPData.Region_Type_EnName',layerid:'region',fieldname2:'Region_Type_Name,Region_Type_EnName'},             
                         {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.Market_Type_Name,PMT2.dbo.gis_PPData.Market_Type_EnName',layerid:'market',fieldname2:'Market_Type_Name,Market_Type_EnName'},
                         {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.City_Type_Name,PMT2.dbo.gis_PPData.City_Type_EnName',fieldname2:'City_Type_Name,City_Type_EnName'},
                         {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.Dist_Type_Name,PMT2.dbo.gis_PPData.Dist_Type_EnName',fieldname2:'Dist_Type_Name,Dist_Type_EnName'},
                         {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.MM_Type_Name,PMT2.dbo.gis_PPData.MM_Type_EnName',fieldname2:'MM_Type_Name,MM_Type_EnName'},
                         {name:'Progress',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.Process_EnName',layerid:'gis_PP-Progress',fieldname2:'Process_EnName'},       
                         {name:'Status',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.StoreStatus_EnName',layerid:'gis_PP-Status',fieldname2:'StoreStatus_EnName'},
                         {name:'Store Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.StoreType_EnName',layerid:'gis_Competitor-Store_Type',fieldname2:'StoreType_EnName'},
                         {name:'Portfolio Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.PortfolioType_EnName',layerid:'gis_Competitor-Portfolio_Type',fieldname2:'PortfolioType_EnName'},
                         {name:'Open Date',operator:'=,>,<,>=,<=,between',fieldname:'PMT2.dbo.gis_PPData.ActualOpenDate',fieldname2:'ActualOpenDate', isDate:'true'},
                         {name:'Planner',operator:'=,Like',fieldname:'PMT2.dbo.gis_PPData.Planner',fieldname2:'Planner'},
                         {name:'National Alliance Name',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PPData.Nation_Alliance_Type_EnName',layerid:'gis_PP-National-Alliance-Name',fieldname2:'Nation_Alliance_Type_EnName'}
                      ],
            isAdvancedQuery:true
         },
         {
         	name:"Store",
         	searchfield:[
         	              {name:'US Code',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.StoreCode',fieldname2:"StoreCode"},
                          {name:'Store Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.StoreNameCn,PMT2.dbo.gis_StoreData.StoreNameEn',fieldname2:"StoreNameCn,StoreNameEn"},
                          {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.Region_Type_Name,PMT2.dbo.gis_StoreData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},             
                          {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.Market_Type_Name,PMT2.dbo.gis_StoreData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                          {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.City_Type_Name,PMT2.dbo.gis_StoreData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                          {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.Dist_Type_Name,PMT2.dbo.gis_StoreData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                          {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.MM_Type_Name,PMT2.dbo.gis_StoreData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"},
                          {name:'Status',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.StoreStatus_EnName',layerid:'gis_Store-Status',fieldname2:"StoreStatus_EnName"},       
                          {name:'Store Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.StoreType_EnName',layerid:'gis_Competitor-Store_Type',fieldname2:"StoreType_EnName"},
                          {name:'Portfolio Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.PortfolioType_EnName',layerid:'gis_Competitor-Portfolio_Type',fieldname2:"PortfolioType_EnName"},
                          {name:'Open Date',operator:'=,>,<,>=,<=,between',fieldname:'PMT2.dbo.gis_StoreData.OpenDate',fieldname2:"OpenDate",isDate:"true"},
                          {name:'Planner',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreData.Planner',fieldname2:"Planner"},
                          {name:'National Alliance Name',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreData.Nation_Alliance_Type_EnName',layerid:'gis_PP-National-Alliance-Name',fieldname2:"Nation_Alliance_Type_EnName"}
                       ],
            isAdvancedQuery:true
          },
          {
           	name:"Competitor",
           	searchfield:[
           	                {name:'Competitor Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_CompetitorData.Name',fieldname2:"Name"},
                            {name:'Brand Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_CompetitorData.Chain_Name',fieldname2:"Chain_Name"},
                            {name:'Open Date',operator:'=,>,<,>=,<=,between',fieldname:'PMT2.dbo.gis_CompetitorData.Open_Date',fieldname2:"Open_Date",isDate:"true"},             
                            {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_CompetitorData.Region_Type_Name,PMT2.dbo.gis_CompetitorData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                            {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_CompetitorData.Market_Type_Name,PMT2.dbo.gis_CompetitorData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                            {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_CompetitorData.City_Type_Name,PMT2.dbo.gis_CompetitorData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                            {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_CompetitorData.Dist_Type_Name,PMT2.dbo.gis_CompetitorData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                            {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_CompetitorData.MM_Type_Name,PMT2.dbo.gis_CompetitorData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                         ],
             isAdvancedQuery:true
           },
           {
          	name:"City",
          	searchfield:[
          	               {name:'City ID',operator:'=,Like',fieldname:'sde.DBO.City.City_code'},
                           {name:'City Name',operator:'=,Like',fieldname:'sde.DBO.City.CityName_CN,sde.DBO.City.CityName_EN'},
                           {name:'City Tier',operator:'=,Like',fieldname:'PMT2.dbo.gis_Hierarchy.City_Rank_EnName'},             
                           {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Region_Type_Name,PMT2.dbo.gis_Hierarchy.Region_Type_EnName',layerid:'region'},
                           {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Market_Type_Name,PMT2.dbo.gis_Hierarchy.Market_Type_EnName',layerid:'market'}
                     ],
               isAdvancedQuery:true
          },
          {
    		name:"MM",
        	searchfield:[
        	             {name:'MM ID',operator:'=,Like',fieldname:'sde.DBO.MM.MM_Code',fieldname2:"MM_Type_Code"},
                         {name:'MM Name',operator:'=,Like',fieldname:'sde.DBO.MM.MMName_CN,sde.DBO.MM.MMName_EN',fieldname2:"MMName_CN,MMName_EN"},
                         {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Region_Type_Name,PMT2.dbo.gis_Hierarchy.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},             
                         {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Market_Type_Name,PMT2.dbo.gis_Hierarchy.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                         {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_Hierarchy.City_Type_Name,PMT2.dbo.gis_Hierarchy.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                         {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_Hierarchy.Dist_Type_Name,PMT2.dbo.gis_Hierarchy.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"}
                   ],
               isAdvancedQuery:true
          },
          {
          	name:"District",
          	searchfield:[
          	               {name:'District ID',operator:'=,Like',fieldname:'sde.DBO.District.District_Code'},
                           {name:'District Name',operator:'=,Like',fieldname:'sde.DBO.District.DistrictName_CN,sde.DBO.District.DistrictName_EN'},
                           {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Region_Type_Name,PMT2.dbo.gis_Hierarchy.Region_Type_EnName',layerid:'region',fieldname2:'Region_Type_Name,Region_Type_EnName'},             
                           {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_Hierarchy.Market_Type_Name,PMT2.dbo.gis_Hierarchy.Market_Type_EnName',layerid:'market',fieldname2:'Market_Type_Name,Market_Type_EnName'},
                           {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_Hierarchy.City_Type_Name,PMT2.dbo.gis_Hierarchy.City_Type_EnName',fieldname2:'City_Type_Name,City_Type_EnName'}
                     ],
            isAdvancedQuery:true
         },
         {
           	name:"TA_Pipeline",
           	searchfield:[
           	                {name:'TA ID',operator:'=,Like',fieldname:'sde.DBO.PipelineTA.TACode',fieldname2:"TACode"},
                            {name:'TA Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_PipelineTAData.Name',fieldname2:"Name"},
                            {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PipelineTAData.Region_Type_Name,PMT2.dbo.gis_PipelineTAData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                            {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_PipelineTAData.Market_Type_Name,PMT2.dbo.gis_PipelineTAData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                            {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_PipelineTAData.City_Type_Name,PMT2.dbo.gis_PipelineTAData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                            {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_PipelineTAData.Dist_Type_Name,PMT2.dbo.gis_PipelineTAData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                            {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_PipelineTAData.MM_Type_Name,PMT2.dbo.gis_PipelineTAData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                      ],
                  isAdvancedQuery:true
          },
          {
         	name:"TA_Store",
         	searchfield:[
         	              {name:'TA ID',operator:'=,Like',fieldname:'sde.DBO.StoreTA.TACode',fieldname2:"TACode"},
                          {name:'TA Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreTAData.Name',fieldname2:"Name"},
                          {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreTAData.Region_Type_Name,PMT2.dbo.gis_StoreTAData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                          {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StoreTAData.Market_Type_Name,PMT2.dbo.gis_StoreTAData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                          {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreTAData.City_Type_Name,PMT2.dbo.gis_StoreTAData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                          {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreTAData.Dist_Type_Name,PMT2.dbo.gis_StoreTAData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                          {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_StoreTAData.MM_Type_Name,PMT2.dbo.gis_StoreTAData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                    ],
                isAdvancedQuery:true
          },
          {
         	name:"FocalArea",
         	searchfield:[
         	              {name:'Focal Area ID',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.FA_ID',fieldname2:"FA_ID"},
                          {name:'Focal Area Name',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.FAName',fieldname2:"FAName"},
                          {name:'Focal Area Priority',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FAData.FAPriority',layerid:'gis_FA-FAPriority',fieldname2:"FAPriority"},
                          {name:'Proj. Open Year',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.OpenYear',fieldname2:"OpenYear"},
                          {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FAData.Region_Type_Name,PMT2.dbo.gis_FAData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                          {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FAData.Market_Type_Name,PMT2.dbo.gis_FAData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                          {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.City_Type_Name,PMT2.dbo.gis_FAData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                          {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.Dist_Type_Name,PMT2.dbo.gis_FAData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                          {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_FAData.MM_Type_Name,PMT2.dbo.gis_FAData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                    ],
              isAdvancedQuery:true
          },
          {
        	name:"Future_Key_POI",
           	searchfield:[
           	              {name:'Future Key POI Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.Type',layerid:'gis_FutureKeyPOI-Type',fieldname2:"Type"},
                          {name:'Future Key POI Status',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.Status',layerid:'gis_FutureKeyPOI-Status',fieldname2:"Status"},
                          {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.Region_Type_Name,PMT2.dbo.gis_FutureKeyPOIData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                          {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.Market_Type_Name,PMT2.dbo.gis_FutureKeyPOIData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                          {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.City_Type_Name,PMT2.dbo.gis_FutureKeyPOIData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                          {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.Dist_Type_Name,PMT2.dbo.gis_FutureKeyPOIData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                          {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_FutureKeyPOIData.MM_Type_Name,PMT2.dbo.gis_FutureKeyPOIData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                    ],
             isAdvancedQuery:false
          },
          {
          	name:"Strategic_Point",
             	searchfield:[
             	            {name:'Strategy Point ID',operator:'=,Like',fieldname:'PMT2.dbo.gis_StrategyPointData.StrategyPointID',fieldname2:"StrategyPointID"},
             	            {name:'Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StrategyPointData.Type_EnName',layerid:'gis_Competitor-Store_Type',fieldname2:"Type_EnName"},
                            {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StrategyPointData.Region_Type_Name,PMT2.dbo.gis_StrategyPointData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
                            {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_StrategyPointData.Market_Type_Name,PMT2.dbo.gis_StrategyPointData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
                            {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_StrategyPointData.City_Type_Name,PMT2.dbo.gis_StrategyPointData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
                            {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_StrategyPointData.Dist_Type_Name,PMT2.dbo.gis_StrategyPointData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
                            {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_StrategyPointData.MM_Type_Name,PMT2.dbo.gis_StrategyPointData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}      
                      ],
               isAdvancedQuery:false
          },
          {
        	name:"FATA",
           	searchfield:[
           	             {name:'FATA ID',operator:'=,Like',fieldname:'PMT2.dbo.gis_FATAData.FATAID',fieldname2:"FATAID"},
           	             {name:'Type',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FATAData.Type_EnName',layerid:'gis_Competitor-Store_Type',fieldname2:"Type_EnName"},
	           	         {name:'Region',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FATAData.Region_Type_Name,PMT2.dbo.gis_FATAData.Region_Type_EnName',layerid:'region',fieldname2:"Region_Type_Name,Region_Type_EnName"},
	                     {name:'Market',operator:'=,Like,In',fieldname:'PMT2.dbo.gis_FATAData.Market_Type_Name,PMT2.dbo.gis_FATAData.Market_Type_EnName',layerid:'market',fieldname2:"Market_Type_Name,Market_Type_EnName"},
	                     {name:'City',operator:'=,Like',fieldname:'PMT2.dbo.gis_FATAData.City_Type_Name,PMT2.dbo.gis_FATAData.City_Type_EnName',fieldname2:"City_Type_Name,City_Type_EnName"},
	                     {name:'District',operator:'=,Like',fieldname:'PMT2.dbo.gis_FATAData.Dist_Type_Name,PMT2.dbo.gis_FATAData.Dist_Type_EnName',fieldname2:"Dist_Type_Name,Dist_Type_EnName"},
	                     {name:'MM',operator:'=,Like',fieldname:'PMT2.dbo.gis_FATAData.MM_Type_Name,PMT2.dbo.gis_FATAData.MM_Type_EnName',fieldname2:"MM_Type_Name,MM_Type_EnName"}         
                    ],
             isAdvancedQuery:false
          }
         
    ],
    
    visibilityControl:[{
    	name:'PP Active',
    	layerid:'pipeline_active',
    	showFields:[
    	    {name:'ID',fieldname:'PMT2.dbo.gis_PPData.PPCode'},
    	    {name:'Name_CN',fieldname:'PMT2.dbo.gis_PPData.CNSiteName'},
    	    {name:'Progress',fieldname:'PMT2.dbo.gis_PPData.Process_EnName'},
    	    {name:'Status',fieldname:'PMT2.dbo.gis_PPData.StoreStatus_EnName'}
    	]
      },{
    	name:'PP All',
    	layerid:'pipeline',
    	showFields:[
    	    {name:'ID',fieldname:'PMT2.dbo.gis_PPData.PPCode'},
    	    {name:'Name_CN',fieldname:'PMT2.dbo.gis_PPData.CNSiteName'},
    	    {name:'Progress',fieldname:'PMT2.dbo.gis_PPData.Process_EnName'},
    	    {name:'Status',fieldname:'PMT2.dbo.gis_PPData.StoreStatus_EnName'}
    	]
      },{
    	name:'FA',
    	layerid:'focalArea',
    	showFields:[
    	    {name:'FA Name',fieldname:'PMT2.dbo.gis_FAData.FAName'},
    	    {name:'FA Priority',fieldname:'PMT2.dbo.gis_FAData.FAPriority,gis_FAData-FAPriority'},//如果是字典的就用,分隔
    	    {name:'Open Year',fieldname:'PMT2.dbo.gis_FAData.OpenYear'}
    	]
      },{
    	name:'TA_Pipeline',
    	layerid:'taPipeline',
    	showFields:[
    	    {name:'TA ID',fieldname:'PMT2.dbo.gis_TAData.TACode'},
    	    {name:'TA Name',fieldname:'PMT2.dbo.gis_TAData.Name'}
    	]
      },{
      	name:'TA_Store',
      	layerid:'taStore',
      	showFields:[
      	    {name:'TA ID',fieldname:'PMT2.dbo.gis_TAData.TACode'},
      	    {name:'TA Name',fieldname:'PMT2.dbo.gis_TAData.Name'}
      	]
      }
      
    ],
    
    operation:[
       {
    	   opName:"info",
    	   actionPaths:["widgets/opManagers/actions/ShowInfoAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"pointView",
    	   actionPaths:["widgets/opManagers/actions/PointViewAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"measureLength",
    	   actionPaths:["widgets/opManagers/actions/measureLengthAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"measureArea",
    	   actionPaths:["widgets/opManagers/actions/measureAreaAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"analyze",
    	   actionPaths:["widgets/opManagers/actions/AnalyzeAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"bufferStatistic",
    	   actionPaths:["widgets/opManagers/actions/BufferStatisticAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","snapshot"]
       },
       {
    	   opName:"analyzeBaidu",
    	   actionPaths:["widgets/opManagers/actions/PolygonStatisticBaiduAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"bufferStatisticBaidu",
    	   actionPaths:["widgets/opManagers/actions/BufferStatisticBaiduAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","snapshot"]
       },
       {
    	   opName:"communityStatsBaidu",
    	   actionPaths:["widgets/opManagers/actions/communityStatsBaiduAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"poiStatistic",
    	   actionPaths:["widgets/opManagers/actions/POIStatisticAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","snapshot"]
       },
       {
    	   opName:"delete",
    	   actionPaths:["widgets/opManagers/actions/DeleteAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"grphEdit",
    	   actionPaths:["widgets/opManagers/actions/GrphEditAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"visibilitycontrol",
    	   actionPaths:["widgets/opManagers/actions/VisibilityControlAction"],
       	   exclusion:["info","pointView","collect","measureLength","measureArea",
	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"cancelsearch",
    	   actionPaths:["widgets/opManagers/actions/CancelSearchAction"],
       	   exclusion:["info","pointView","collect","measureLength","measureArea",
	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       },
       {
    	   opName:"showLabel",
    	   actionPaths:["widgets/opManagers/actions/ShowLabelAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","showAllLabel","snapshot"]
       
       },
       {
    	   opName:"thematic",
    	   actionPaths:["widgets/opManagers/actions/ThematicAction"],
       	   exclusion:["thematic","hand","snapshot"]
       },
       {
    	   opName:"hand",
    	   actionPaths:["widgets/opManagers/actions/ClearAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","showAllLabel","snapshot"]
       },
       {
    	   opName:"showAllLabel",
    	   actionPaths:["widgets/opManagers/actions/ShowAllLabelAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","snapshot"]
       },
       {
    	   opName:"bookmark",
    	   actionPaths:["widgets/opManagers/actions/BookmarkAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","snapshot"]
       },
       {
    	   opName:"snapshot",
    	   actionPaths:["widgets/opManagers/actions/SnapshotAction"],
    	   exclusion:["info","pointView","collect","measureLength","measureArea",
    	              "analyze","bufferStatistic","poiStatistic","delete","grphEdit","visibilitycontrol",
    	              "cancelsearch","showLabel","thematic","hand","bookmark"]
       }
    ],
    
    reg:{
         smallint:{value:'^\\d+(\\.\\d{1})?$',tip:'输入自然数,保留一位小数'},//小于1的小数
         chinese:{value:'^([A-Za-z]|[\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[\\s()\\d])*$',tip:'请输入中文，英文数字及空格!'},//输入中文
         english:{value:'^[A-Za-z0-9\\s]+$',tip:'请输入英文字母、数字或空格!'},
         number:{value:'^[+-]?\\d+(\\.\\d+)?$',tip:'请输入数字!'},
         nonnegnumber:{value:'^[+]{0,1}(\\d+)$|^[+]{0,1}(\\d+\\.\\d+)$',tip:'请输入非负数!'},
         inputchar:{value:'^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[A-Za-z0-9]|[\\d])*$',tip:'请输入中文、英文和数字!'},
         year:{value:'^([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})',tip:'请输入年份!'}
    },
    
    //中英文
    ENandCN:[
        {classname:"layerControl", en:"Layer Control", cn:"图层控制",type:"text"},
        {classname:"resulttotal", en:"Total Records:", cn:"查询结果共:",type:"text"},
/*        {classname:"prepage", en:"< Prev", cn:"上一页",type:"text"},
        {classname:"nextpage", en:"Next >", cn:"下一页",type:"text"},*/
        {classname:"logout", en:"logout", cn:"退出",type:"text"},
        {classname:"address", en:"Address", cn:"地址",type:"text"},
        {classname:"queryWidget_advanced", en:"Advanced Search", cn:"高级搜索",type:"text",operation:"Advanced Search"},
        {classname:"competitorbk", en:"Competitor", cn:"竞争对手",type:"title"},
        {classname:"generatorbk", en:"Generator", cn:"销售推动",type:"title"},
        {classname:"metrostation", en:"Metro", cn:"地铁站",type:"title",operation:"Enabler"},
        {classname:"busstop", en:"Bus", cn:"公交车站",type:"title",operation:"Enabler"},
        {classname:"fkPoibk", en:"Future Key POI", cn:"未来关键兴趣点",type:"title",operation:"Future Key POI"},
        {classname:"drawingbk", en:"Drawing", cn:"画图",type:"title"},
        {classname:"ta", en:"Trade Area", cn:"商圈",type:"title",operation:"Drawing"},
        {classname:"fa", en:"Focal Area", cn:"焦点区域",type:"title",operation:"Drawing"},
        {classname:"sa", en:"Service Area", cn:"服务范围",type:"title",operation:"Drawing"},
        {classname:"mds", en:"MDS SA", cn:"MDS服务范围",type:"title",operation:"Drawing"},
        {classname:"dt", en:"DT-Road", cn:"DT道路",type:"title",operation:"Drawing"},
        {classname:"fata", en:"FA-TA", cn:"FA-TA",type:"title",operation:"Drawing"},
        {classname:"sp", en:"Strategy Point", cn:"基准点",type:"title",operation:"Drawing"},
        {classname:"information", en:"Information", cn:"信息查询",type:"title",operation:"Information"},
        {classname:"popSummary", en:"Pop Summary", cn:"人口统计",type:"title",operation:"Pop Summary"},
        {classname:"popSummaryBaidu", en:"Baidu Pop Summary", cn:"百度人口统计",type:"title",operation:"Pop Summary"},
        {classname:"measure", en:"Measure", cn:"测量",type:"title"},
        {classname:"distanceMeasure", en:"Distance", cn:"距离测量",type:"title",operation:"Measure"},
        {classname:"areaMeasure", en:"Area", cn:"面积测量",type:"title",operation:"Measure"},
        {classname:"visibilityControl", en:"Visibility Control", cn:"显示控制",type:"title",operation:"Visibility Control"},
        {classname:"mapEdit", en:"Map Edit", cn:"图形编辑",type:"title",operation:"Map Edit"},
        {classname:"labelEdit", en:"Label", cn:"标签",type:"title",operation:"Label Edit"},
        {classname:"bookmarkTool", en:"Bookmark", cn:"地图书签",type:"title",operation:"Label Edit"},
        {classname:"cancelTool", en:"Cancel", cn:"清除",type:"title"},
        {classname:"delete", en:"Delete", cn:"删除图形",type:"title",operation:"Cancel"},
        {classname:"cancelsearch", en:"Cancel Search", cn:"取消搜索",type:"title",operation:"Cancel"},
        {classname:"report", en:"Report", cn:"报表",type:"text"},
        {classname:"thematic", en:"Thematic", cn:"专题图",type:"text"},
        {classname:"task", en:"Task", cn:"任务",type:"text"},
        {classname:"help", en:"Help", cn:"帮助",type:"text"},
        {classname:"pipelineReport", en:"Pipeline", cn:"Pipeline",type:"text",operation:"Report"},
        {classname:"storeReport", en:"Store", cn:"Store",type:"text",operation:"Report"},
        {classname:"competitorReport", en:"Competitor", cn:"Competitor",type:"text",operation:"Report"},
        {classname:"fkpReport", en:"FKP", cn:"FKP",type:"text",operation:"Report"},
        {classname:"faReport", en:"Focal Area", cn:"Focal Area",type:"text",operation:"Report"},
        {classname:"tappReport", en:"Pipeline TA", cn:"Pipeline TA",type:"text",operation:"Report"},
        {classname:"tastoreReport", en:"Store TA", cn:"Store TA",type:"text",operation:"Report"},
        {classname:"mmReport", en:"MM", cn:"MM",type:"text",operation:"Report"},
        {classname:"mdsCityReport", en:"MDS City Capacity", cn:"MDS City Capacity",type:"text",operation:"Report"},
        {classname:"spReport", en:"Strategy Point", cn:"Strategy Point",type:"text",operation:"Report"},
        {classname:"fataReport", en:"FATA", cn:"FATA",type:"text",operation:"Report"},
        {classname:"y1Sales", en:"PP_Y1 Sales", cn:"Pipline Y1销售额",type:"text",operation:"Thematic",operation2:"Pipeline"},
        {classname:"fapriority", en:"FA_Priority", cn:"FA优先级",type:"text",operation:"Thematic",operation2:"Focal Area"},
        {classname:"faopenYear", en:"FA_Open Year", cn:"FA开业年份",type:"text",operation:"Thematic",operation2:"Focal Area"},
        {classname:"mmpriority", en:"MM_Priority", cn:"MM优先级",type:"text",operation:"Thematic"},
        {classname:"ppwithoutFA", en:"PP without FA", cn:"PP没有FA",type:"text",operation:"Task"},
        {classname:"ppwithoutTA", en:"PP without TA", cn:"PP没有TA",type:"text",operation:"Task"},
        {classname:"fawithoutFATA", en:"FA without FATA", cn:"FA没有FATA",type:"text",operation:"Task"},
        {classname:"openedFkp", en:"Opened FKP", cn:"FKP已到达开业年份",type:"text",operation:"Task"},
        {classname:"ppRedundant", en:"Potential Redundant PP", cn:"PP符合Redundant条件",type:"text",operation:"Task"},
        {classname:"ppset", en:"10% Sales Estimation", cn:"PP 10%营业额预估",type:"text",operation:"Task"},
        {classname:"pp30req", en:"30% PP Required Information", cn:"30% PP必填信息",type:"text",operation:"Task"},
        {classname:"adminPortal", en:"Admin Portal", cn:"管理员界面",type:"text",operation:"Help"},
        {classname:"helpDocument", en:"Help Document", cn:"帮助文档",type:"text",operation:"Help"},
        {classname:"hand", en:"Clear", cn:"清除",type:"title",operation:"Clear"},
        {classname:"pp", en:"Market_PP#", cn:"Market PP个数",type:"text" ,operation:"Thematic",operation2:"Market"},
        {classname:"store", en:"Market_Store#", cn:"Market Store个数",type:"text" ,operation:"Thematic",operation2:"Market"},
        {classname:"signing", en:"Market_Signing#", cn:"Market Signing个数",type:"text" ,operation:"Thematic",operation2:"Market"},
        {classname:"all", en:"Market_80%PP+Store#", cn:"Market 80%PP + Store个数",type:"text" , operation:"Thematic",operation2:"Market"},
        {classname:"", en:"Pipeline", type:"title",cn:"Pipeline"},
        {classname:"kfc", en:"KFC", cn:"肯德基",type:"title",operation:"Competitor"},
        {classname:"pizzahut", en:"PizzaHut",type:"title", cn:"必胜客",operation:"Competitor"},
        {classname:"dicos", en:"Dicos", type:"title",cn:"德克士",operation:"Competitor"},
        {classname:"dfjb", en:"DFJB",type:"title", cn:"东方既白",operation:"Competitor"},
        {classname:"buergerking", en:"Burger King",type:"title", cn:"汉堡王",operation:"Competitor"},
        {classname:"yongheking", en:"Yonghe", type:"title",cn:"永和",operation:"Competitor"},
        {classname:"other", en:"Other",type:"title", cn:"其他",operation:"Competitor"},
        {classname:"home", en:"Home",type:"title", cn:"住宅",operation:"Generator"},
        {classname:"work", en:"Work",type:"title", cn:"办公",operation:"Generator"},
        {classname:"school", en:"School",type:"title", cn:"学校",operation:"Generator"},
        {classname:"shop", en:"Shop", type:"title",cn:"购物",operation:"Generator"},
        {classname:"leisure", en:"Leisure",type:"title", cn:"休闲娱乐",operation:"Generator"},
        {classname:"thub", en:"THub",type:"title", cn:"交通枢纽",operation:"Generator"},
        {classname:"other", en:"Other", type:"title",cn:"其他",operation:"Generator"},
        {classname:"", en:"MiniMarketPriority", cn:"MiniMarket优先",type:"text",operation:"Thematic",operation2:"MiniMarket"},
        {classname:"switchbasemap", en:"Photographic", cn:"影像图切换",type:"title"},
        {classname:"ppphoto", en:"Image", cn:"照片",type:"title"},
        {classname:"legend", en:"Legend", cn:"图例",type:"title"},
        {classname:"snapshot", en:"Snapshot", cn:"截图",type:"title"},
        {classname:"sumPoly", en:"Customized Shape", cn:"多边形统计",type:"title"},
        {classname:"sumBuffer", en:"Buffer Statistic", cn:"缓冲区统计",type:"title"}
    ],
    /**
     * 报表字段配置
     */
    report:
    	{"PP":{
        	name:"PP",
        	title:"Pipeline Report",
        	url:"./controlservice/pagequery/pp?",
        	layerId:"pipeline",
        	field:[
					{ field: 'PPCode', label: 'Pipeline ID',css:"width:80px"},
					{ field: 'PMTENSiteName', label: 'Pipeline Name_EN',css:"width:160px"},
					{ field: 'PMTCNSiteName', label: 'Pipeline Name_CN',css:"width:160px"},
					{ field: 'StoreType_EnName', label: 'Store Type',css:"width:80px"},
					{ field: 'PortfolioType_EnName', label: 'Portfolio Type',css:"width:160px" },
					{ field: 'StoreStatus_EnName', label: 'Status',css:"width:80px" },
					{ field: 'PreApproval', label: 'Pre-Approval',css:"width:100px"},
					{ field: 'Process_EnName', label: 'Progress',css:"width:80px"},
					{ field: 'PlannerName', label: 'Planner(Current)',css:"width:160px"},
					{ field: 'OpenDate', label: 'Open Date',css:"width:80px"},
					{ field: 'PPSales', label: 'Y1 Proj. Sales',css:"width:160px" },
					{ field: 'latitude', label: 'Latitude',css:"width:80px" },
					{ field: 'Longitude', label: 'Longitude',css:"width:80px" },
					{ field: 'Region_Type_EnName', label: 'Region',css:"width:80px" },
					{ field: 'Market_Type_EnName', label: 'Market',css:"width:80px"  },
					{ field: 'Dist_Type_EnName', label: 'District',css:"width:80px"  },
					{ field: 'City_Type_EnName', label: 'City',css:"width:80px"  },
					{ field: 'MM_Type_Code', label: 'MM ID',css:"width:80px" },
					{ field: 'MM_Type_EnName', label: 'MM Name',css:"width:80px" },
					{ field: 'mmPopulation', label: 'MM Population',css:"width:160px" },
					{ field: 'mmPriority', label: 'MM Priority',css:"width:160px" },
					{ field: 'TACode', label: 'TA ID',css:"width:80px"  },
					{ field: 'TAName', label: 'TA Name',css:"width:80px"  },
					{ field: 'ClassificationName', label: 'TA Classification',css:"width:160px"  },
					{ field: 'PriorityName', label: 'TA Priority',css:"width:160px"  },
					{ field: 'DesirabilityName', label: 'TA Desirability',css:"width:160px"  },
					{ field: 'MaturityName', label: 'TA Maturity',css:"width:160px"  },
					{ field: 'TASize', label: 'TA Size (sqkm)',css:"width:80px"  },
					{ field: 'FAID', label: 'Focal Area ID',css:"width:80px"  },
					{ field: 'FAName', label: 'Focal Area Name',css:"width:160px"  },
					{ field: 'FAPriority', label: 'Focal Area Priority',css:"width:160px"},
					{ field: 'FAOpenYear', label: 'Proj. Open Year',css:"width:80px"  },
					{ field: 'CreateDate2', label: 'Pipeline Create Date',css:"width:160px"},
					{ field: 'IsAlliance_EnName', label: 'IsNationalAlliance',css:"width:160px"},
					{ field: 'Alliance_EnName', label: 'NationalAllianceName',css:"width:160px"},
					{ field: 'IsBigLL_EnName', label: 'IsLocalAlliance',css:"width:160px"},
					{ field: 'BigLL_EnName', label: 'LocalAllianceName',css:"width:160px"},
					{ field: 'IsBroker_EnName', label: 'IsBroker',css:"width:80px"},
					{ field: 'Broker_EnName', label: 'BrokerName',css:"width:160px"},
					{ field: 'StoreClass_EnName', label: 'Store Category',css:"width:160px"},
					{ field: 'StoreCategory_EnName', label: 'Store Sub-Category',css:"width:160px"},
					{ field: 'Keyword1_EnName', label: 'Key Word 1',css:"width:160px"},
					{ field: 'Keyword2_EnName', label: 'Key Word 2',css:"width:160px"},
					{ field: 'Keyword3_EnName', label: 'Key Word 3',css:"width:160px"},
					{ field: 'HomePop500m', label: 'Permanent Pop._Home 500m',css:"width:200px"},
					{ field: 'HomePop3km', label: 'Permanent Pop._Home 500m-3km',css:"width:200px"},
					{ field: 'HomeIncomeLevel_EnName', label: 'Home-IncomeLevel',css:"width:160px"},
					{ field: 'WorkerPop500m', label: 'Work Pop._500m',css:"width:160px"},
					{ field: 'WorkerPop3km', label: 'Work Pop._500m-3km',css:"width:160px"},
					{ field: 'WorkersProfile_EnName', label: 'Work Profile',css:"width:160px"},
					{ field: 'SchoolStudentCount500m', label: 'Student Count - 500m',css:"width:160px"},
					{ field: 'SchoolStudentCount3km', label: 'Student Count - 500m-3km',css:"width:160px"},
					{ field: 'StudentProfile_EnName', label: 'Student Profile',css:"width:160px"},
					{ field: 'RERating_EnName', label: 'RE Rating',css:"width:160px"},
					{ field: 'IsLocatedAlongAntpath', label: 'IsAntLine',css:"width:160px"},
					{ field: 'DistanceToFocalPoint', label: 'DistanceTo1000',css:"width:160px"},
					{ field: 'VisibilityRating_EnName', label: 'Visibility',css:"width:160px"},
					{ field: 'AccessibilityRating_EnName', label: 'Accessibility',css:"width:160px"},
					{ field: 'PedestrianCountAvg', label: 'Pedestrian_Daily',css:"width:160px"},
					{ field: 'CarCountAvg', label: 'Car Count_Daily',css:"width:160px"}
                 ]
         },
         "Store":{
         	name:"Store",
         	title:"Store Report",
         	url:"./controlservice/pagequery/store?",
         	layerId:"store",
         	field:[
					{ field: 'StoreCode', label: 'US Code',css:"width:80px" },
					{ field: 'PMTCNSiteName', label: 'Store Name_CN',css:"width:160px" },
					{ field: 'PMTENSiteName', label: 'Store Name_EN',css:"width:160px" },
					{ field: 'StoreStatus_EnName', label: 'Status' ,css:"width:160px"},
					{ field: 'StoreType_EnName', label: 'Store Type',css:"width:160px" },
					{ field: 'PortfolioType_EnName', label: 'Portfolio Type',css:"width:160px" },
					{ field: 'OpenDate', label: 'Open Date',css:"width:80px" },
					{ field: 'CloseDate', label: 'Close Date',css:"width:80px" },
					{ field: 'OwnershipType_EnName', label: 'Ownership',css:"width:80px" },
					{ field: 'Address', label: 'Address',css:"width:160px" },
					{ field: 'latitude', label: 'Latitude',css:"width:80px" },
					{ field: 'Longitude', label: 'Longitude' ,css:"width:80px"},
					{ field: 'PlannerName', label: 'Planner(Opened)',css:"width:160px" },
					{ field: 'Region_Type_EnName', label: 'Region',css:"width:80px" },
					{ field: 'Market_Type_EnName', label: 'Market',css:"width:80px" },
					{ field: 'Dist_Type_EnName', label: 'District',css:"width:80px" },
					{ field: 'City_Type_EnName', label: 'City',css:"width:80px" },
					{ field: 'MM_Type_Code', label: 'MM ID',css:"width:80px" },
					{ field: 'MM_Type_EnName', label: 'MM Name',css:"width:80px" },
					{ field: 'TACode', label: 'TA ID',css:"width:80px" },
					{ field: 'TAName', label: 'TA Name' ,css:"width:160px"},
					{ field: 'ClassificationName', label: 'TA Classification',css:"width:160px" },
					{ field: 'PriorityName', label: 'TA Priority',css:"width:160px" },
					{ field: 'DesirabilityName', label: 'TA Desirability',css:"width:160px" },
					{ field: 'MaturityName', label: 'TA Maturity',css:"width:160px" },
					{ field: 'TASize', label: 'TA Size (sqkm)',css:"width:80px" },
					{ field: 'AttachedKioskCount', label: 'Attached Kiosk',css:"width:80px" },
					{ field: 'RemoteKioskCount', label: 'Remoted Kiosk',css:"width:80px" },
					{ field: 'MyCafeCount', label: 'McCafe' ,css:"width:80px"},
					{ field: 'MdsCount', label: 'MDS',css:"width:80px" },
					{ field: 'Is24H', label: '24H',css:"width:80px" },
					{ field: 'IsBroker_EnName', label: 'Borker',css:"width:80px" },
					{ field: 'Broker_EnName', label: 'Broker Name',css:"width:160px" },
					{ field: 'IsAlliance_EnName', label: 'National Alliance',css:"width:80px" },
					{ field: 'Nation_Alliance_Type_EnName', label: 'Alliance Name',css:"width:160px" },
					{ field: 'IsBigLL_EnName', label: 'Local Alliance' },
					{ field: 'BigLL_EnName', label: 'Alliance Name' ,css:"width:160px"},
					{ field: 'GMName', label: 'GM',css:"width:80px" },
					{ field: 'DOName', label: 'DO',css:"width:80px" },
					{ field: 'OMName', label: 'OM',css:"width:80px" },
					{ field: 'StoreSales', label: 'TTM_Total Net Sales (RMB)',css:"width:200px" },
					{ field: 'comp_sales_ttm', label: 'TTM_Comp Sales %' ,css:"width:160px"},
					{ field: 'CashFlow_TTM', label: 'TTM_Cash Flow (RMB)' ,css:"width:160px"},
					{ field: 'SOI_TTM', label: 'TTM_SOI (RMB)',css:"width:160px" },
					{ field: 'SOIPct_TTM', label: 'TTM_SOI%' ,css:"width:160px"},
					{ field: 'McOpCoMargin_TTM', label: 'TTM_Mcopco Margin (RMB)',css:"width:180px" },
					{ field: 'McOpCoMarginPct_TTM', label: 'TTM_Mcopco Margin %' ,css:"width:180px"},
					{ field: 'StoreClass_EnName', label: 'Store Category',css:"width:160px"},
					{ field: 'StoreCategory_EnName', label: 'Store Sub-Category',css:"width:160px"},
					{ field: 'Keyword1_EnName', label: 'Key Word 1',css:"width:160px"},
					{ field: 'Keyword2_EnName', label: 'Key Word 2',css:"width:160px"},
					{ field: 'Keyword3_EnName', label: 'Key Word 3',css:"width:160px"},
					{ field: 'HomePop500m', label: 'Permanent Pop._Home 500m',css:"width:200px"},
					{ field: 'HomePop3km', label: 'Permanent Pop._Home 500m-3km',css:"width:200px"},
					{ field: 'HomeIncomeLevel_EnName', label: 'Home-IncomeLevel',css:"width:160px"},
					{ field: 'WorkerPop500m', label: 'Work Pop._500m',css:"width:160px"},
					{ field: 'WorkerPop3km', label: 'Work Pop._500m-3km',css:"width:160px"},
					{ field: 'WorkersProfile_EnName', label: 'Work Profile',css:"width:160px"},
					{ field: 'SchoolStudentCount500m', label: 'Student Count - 500m',css:"width:160px"},
					{ field: 'SchoolStudentCount3km', label: 'Student Count - 500m-3km',css:"width:160px"},
					{ field: 'StudentProfile_EnName', label: 'Student Profile',css:"width:160px"},
					{ field: 'RERating_EnName', label: 'RE Rating',css:"width:160px"},
					{ field: 'IsLocatedAlongAntpath', label: 'IsAntLine',css:"width:160px"},
					{ field: 'DistanceToFocalPoint', label: 'DistanceTo1000',css:"width:160px"},
					{ field: 'VisibilityRating_EnName', label: 'Visibility',css:"width:160px"},
					{ field: 'AccessibilityRating_EnName', label: 'Accessibility',css:"width:160px"},
					{ field: 'PedestrianCountAvg', label: 'Pedestrian_Daily',css:"width:160px"},
					{ field: 'CarCountAvg', label: 'Car Count_Daily',css:"width:160px"}
                  ]
          },
          "Competitor":{
           	name:"Competitor",
           	title:"Competitor Report",
           	url:"./controlservice/pagequery/comeptitor?",
           	layerId:"competitor",
           	field:[
			          { field: 'CompetitorID', label: 'Competitor ID',css:"width:160px" },
			          { field: 'Name', label: 'Competitor Name',css:"width:160px" },
			          { field: 'Chain_Name', label: 'Brand Name',css:"width:160px" },
			          { field: 'Status', label: 'Status',css:"width:80px" },
			          { field: 'Open_Date', label: 'Open Date' ,css:"width:120px"},
			          { field: 'Address', label: 'Address' ,css:"width:160px"},
			          { field: 'StoreType', label: 'Store Type' ,css:"width:80px"},
			          { field: 'PortfolioType', label: 'Portfolio Type',css:"width:160px" },
			          { field: 'RE_Rating', label: 'RE Rating' ,css:"width:80px"},
			          { field: 'Area_Size', label: 'Area Size (sqm)',css:"width:160px" },
			          { field: 'SalesYear1', label: 'Sales Year1',css:"width:120px" },
			          { field: 'AnnualAvgSales1', label: 'Annual Avg Sales (RMB)1',css:"width:200px" },
			          { field: 'SalesYear2', label: 'Sales Year2',css:"width:120px" },
			          { field: 'AnnualAvgSales2', label: 'Annual Avg Sales (RMB)2',css:"width:200px" },
			          { field: 'SalesYear3', label: 'Sales Year3',css:"width:120px" },
			          { field: 'AnnualAvgSales3', label: 'Annual Avg Sales (RMB)3',css:"width:200px" },
			          { field: 'SalesYear4', label: 'Sales Year4',css:"width:120px" },
			          { field: 'AnnualAvgSales4', label: 'Annual Avg Sales (RMB)4',css:"width:200px" },
			          { field: 'SalesYear5', label: 'Sales Year5',css:"width:120px" },
			          { field: 'AnnualAvgSales5', label: 'Annual Avg Sales (RMB)5',css:"width:200px" },
			          { field: 'y', label: 'Latitude' ,css:"width:80px"},
			          { field: 'x', label: 'Longitude',css:"width:80px" },
			          { field: 'Region_Type_EnName', label: 'Region',css:"width:80px" },
			          { field: 'Market_Type_EnName', label: 'Market' ,css:"width:80px"},
			          { field: 'Dist_Type_EnName', label: 'District',css:"width:80px" },
			          { field: 'City_Type_EnName', label: 'City' ,css:"width:80px"},
			          { field: 'MM_Type_Code', label: 'MM ID',css:"width:80px" },
			          { field: 'MM_Type_EnName', label: 'MM Name' ,css:"width:80px"}
			      ]
          },
          "TA_Pipeline":{
        	layerId:"taPipeline",
          	name:"TA_Pipeline",
          	title:"TA_Pipeline Report",
          	url:"./controlservice/pagequery/ta?",
          	field:[
  			          { field: 'TACode', label: 'TA ID' ,css:"width:80px"},
  			          { field: 'Name', label: 'TA Name',css:"width:80px" },
  			          { field: 'ClassificationName', label: 'TA Classification',css:"width:160px" },
  			          { field: 'PriorityName', label: 'TA Priority',css:"width:160px" },
  			          { field: 'DesirabilityName', label: 'TA Desirability' ,css:"width:160px"},
  			          { field: 'MaturityName', label: 'TA Maturity',css:"width:160px" },
  			          { field: 'TASize', label: 'TA Size (sqkm)',css:"width:80px" },
  			          { field: 'IncomeLevelName', label: 'Income Level' ,css:"width:160px"},
  			          { field: 'Region_Type_EnName', label: 'Region' ,css:"width:80px"},
  			          { field: 'Market_Type_EnName', label: 'Market' ,css:"width:80px"},
  			          { field: 'City_Type_EnName', label: 'City',css:"width:80px" },
  			          { field: 'Dist_Type_EnName', label: 'District' ,css:"width:80px"},
  			          { field: 'MM_Type_Code', label: 'MM ID',css:"width:80px" },
  			          { field: 'MM_Type_EnName', label: 'MM Name' ,css:"width:80px"},
 			          { field: 'mmPriority', label: 'MM Priority' ,css:"width:120px"},
  			          { field: 'mmPopulation', label: 'MM Population' ,css:"width:120px"}
  			       ]
            },
            
            "TA_Store":{
            	layerId:"taStore",
              	name:"TA_Store",
              	title:"TA_Store Report",
              	url:"./controlservice/pagequery/ta?",
              	field:[
      			          { field: 'TACode', label: 'TA ID' ,css:"width:80px"},
	  			          { field: 'Name', label: 'TA Name',css:"width:80px" },
	  			          { field: 'ClassificationName', label: 'TA Classification',css:"width:160px" },
	  			          { field: 'PriorityName', label: 'TA Priority',css:"width:160px" },
	  			          { field: 'DesirabilityName', label: 'TA Desirability' ,css:"width:160px"},
	  			          { field: 'MaturityName', label: 'TA Maturity',css:"width:160px" },
	  			          { field: 'TASize', label: 'TA Size (sqkm)',css:"width:80px" },
	  			          { field: 'IncomeLevelName', label: 'Income Level' ,css:"width:160px"},
	  			          { field: 'Region_Type_EnName', label: 'Region' ,css:"width:80px"},
	  			          { field: 'Market_Type_EnName', label: 'Market' ,css:"width:80px"},
	  			          { field: 'City_Type_EnName', label: 'City',css:"width:80px" },
	  			          { field: 'Dist_Type_EnName', label: 'District' ,css:"width:80px"},
	  			          { field: 'MM_Type_Code', label: 'MM ID',css:"width:80px" },
	  			          { field: 'MM_Type_EnName', label: 'MM Name' ,css:"width:80px"},
	 			          { field: 'mmPriority', label: 'MM Priority' ,css:"width:120px"},
	  			          { field: 'mmPopulation', label: 'MM Population' ,css:"width:120px"}
      			       ]
           },
           "MM":{
        	layerId:"mm",
        	name:"MM",
        	title:"MM Report",
        	url:"./controlservice/pagequery/mm?",
        	field:[
					 { field: 'MM_Type_Code', label: 'MM ID' ,css:"width:80px"},
					 { field: 'MM_Type_EnName', label: 'MM Name' ,css:"width:80px"},
					 { field: 'mmPopulation', label: 'MM Population',css:"width:160px" },
					 { field: 'mmPriority', label: 'MM Priority' ,css:"width:160px"},
					  { field: 'Region_Type_EnName', label: 'Region' ,css:"width:80px"},
					  { field: 'Market_Type_EnName', label: 'Market',css:"width:80px" },
					  { field: 'City_Type_EnName', label: 'City' ,css:"width:80px"},
					  { field: 'Dist_Type_EnName', label: 'District',css:"width:80px" }
			       ]
          },     
          
         "FocalArea":{
        	layerId:"focalArea",
          	name:"FocalArea",
          	title:"FocalArea Report",
          	url:"./controlservice/pagequery/fa?",
          	field:[
					{ field: 'FA_ID', label: 'Focal Area ID',css:"width:120px"},
					{ field: 'FAName', label: 'Focal Area Name',css:"width:200px"},
					{ field: 'FAType', label: 'Type',css:"width:80px"},
					{ field: 'FAPriority', label: 'Focal Area Priority',css:"width:200px"},
					{ field: 'EstimatedSales', label: 'Est. Sales (RMB)',css:"width:200px"},
					{ field: 'OpenYear', label: 'Proj. Open Year',css:"width:200px"},
					{ field: 'totalG', label: 'Store#(Opened)',css:"width:200px" },
					{ field: 'totalR', label: 'PP#(Remain)' ,css:"width:200px"},
					{ field: 'MM_Type_Code', label: 'MM ID' ,css:"width:80px"},
					{ field: 'MM_Type_EnName', label: 'MM Name' ,css:"width:80px"},
					{ field: 'mmPopulation', label: 'MM Population',css:"width:160px" },
					{ field: 'mmPriority', label: 'MM Priority',css:"width:160px" },
					{ field: 'Region_Type_EnName', label: 'Region' ,css:"width:80px"},
					{ field: 'Market_Type_EnName', label: 'Market',css:"width:80px" },
					{ field: 'City_Type_EnName', label: 'City',css:"width:80px" },
					{ field: 'Dist_Type_EnName', label: 'District' ,css:"width:80px"}
                   ]
           },
          "SP":{
        	    layerId:"strategyPoint",
        		name:"Strategic_Point",
             	title:"Strategic Point",
             	url:"./controlservice/pagequery/sp?",
             	field:[
    					{ field: 'StrategyPointID', label: 'ID',css:"width:80px" },
    					{ field: 'Name', label: 'Name',css:"width:160px" },
    					{ field: 'Type_EnName', label: 'Type',css:"width:160px" },
    					{ field: 'FA_ID', label: 'Focal Area ID',css:"width:160px" },
    					{ field: 'FAName', label: 'Focal Area Name' ,css:"width:160px"},
    					{ field: 'EstimatedSales', label: 'Estimated Sales',css:"width:160px" },
    					{ field: 'MM_Type_Code', label: 'MM ID',css:"width:80px"},
    					{ field: 'MM_Type_Name', label: 'MM Name' ,css:"width:80px"},
    					{ field: 'Dist_Type_Name', label: 'District',css:"width:80px" },
    					{ field: 'City_Type_Name', label: 'City',css:"width:80px" },
    					{ field: 'Market_Type_Name', label: 'Market',css:"width:80px" },
    					{ field: 'Region_Type_Name', label: 'Region',css:"width:80px" }
                ]
          },
          "FATA":{
	        	layerId:"faTA",
	      		name:"FATA",
	           	title:"FATA",
	           	url:"./controlservice/pagequery/fata?",
	           	field:[
	  					{ field: 'FATAID', label: 'Code',css:"width:80px" },
	  					{ field: 'Name', label: 'Name', css:"width:160px"},
	  					{ field: 'Type_EnName', label: 'Type' ,css:"width:80px"},
	  					{ field: 'Size', label: 'Size' ,css:"width:80px"},
	  					{ field: 'FA_ID', label: 'Focal Area ID' ,css:"width:200px"},
	  					{ field: 'FAName', label: 'Focal Area Name',css:"width:200px" },
	  					{ field: 'MM_Type_Code', label: 'MM ID' ,css:"width:80px"},
	  					{ field: 'MM_Type_Name', label: 'MM Name' ,css:"width:80px"},
	  					{ field: 'Dist_Type_Name', label: 'District' ,css:"width:80px"},
	  					{ field: 'City_Type_Name', label: 'City' ,css:"width:80px"},
	  					{ field: 'Market_Type_Name', label: 'Market' ,css:"width:80px"},
	  					{ field: 'Region_Type_Name', label: 'Region' ,css:"width:80px"}
	              ]
	       },
	       "MDSCapacity":{
	        	layerId:"mdsCityCapacity",
	      		name:"MDSCapacity",
	           	title:"MDS City Capacity",
	           	url:"./controlservice/pagequery/mdscitycapacity?",
	           	field:[
	  					{ field: 'OBJECTID', label: 'ID',css:"width:80px" },
	  					{ field: 'SalesCapacity', label: 'MDS Sales Capacity',css:"width:160px" },
	  					{ field: 'ActualSales', label: 'MDS Performance' ,css:"width:160px"},
	  					{ field: 'NetCapacity', label: 'MDS Net Capacity' ,css:"width:160px"}
	              ]
	       },
	       "Franchising":{
	        	layerId:"Store",
	      		name:"",
	           	title:"CL Entity Store",
	           	url:"./controlservice/pagequery/mdscitycapacity?",
	           	field:[
	  					{ field: 'No', label: 'No',css:"width:80px" },
	  					{ field: 'CHINESENAME', label: 'CHINESENAME',css:"width:80px" },
	  					/*{ field: 'FIRSTNAME', label: 'FIRSTNAME' ,css:"width:60px"},
	  					{ field: 'LASTNAME', label: 'LASTNAME' ,css:"width:80px"},*/
	  					{ field: 'EMPLOYER', label: 'EMPLOYER',css:"width:160px" },
	  					{ field: 'Age', label: 'Age',css:"width:80px" },
	  					{ field: 'TotRest', label: 'TotRest' ,css:"width:60px"},
	  					{ field: 'CashFlow', label: 'CashFlow' ,css:"width:80px"},
	  					{ field: 'AUV', label: 'AUV',css:"width:160px" },
	  					{ field: 'BR', label: 'BR',css:"width:160px" }
	              ]
	       },
	       "Entity":{
	        	layerId:"Store",
	      		name:"",
	           	title:"CL Entity Store",
	           	url:"./controlservice/pagequery/mdscitycapacity?",
	           	field:[
	  					{ field: 'No', label: 'No',css:"width:80px" },
	  					{ field: 'US_CODE', label: 'US_CODE',css:"width:160px" },
	  					{ field: 'STORE_NAME_CN', label: 'STORE_NAME_CN' ,css:"width:80px"},
	  					{ field: 'REST_OPRT_EFF_DT', label: 'Transfer_Date' ,css:"width:80px"},
	  					{ field: 'CashFlow_TTM', label: 'Cash_Flow',css:"width:80px" },
	  					{ field: 'Total_Sales_TTM', label: 'TTM_Sales' ,css:"width:60px"},
	  					{ field: 'AddressZHCN', label: 'Address',css:"width:160px" }
	              ]
	       },
	       "bsStore":{
	        	layerId:"Store",
	      		name:"",
	           	title:"CL Entity Store",
	           	url:"./controlservice/pagequery/mdscitycapacity?",
	           	field:[
	  					{ field: 'US_CODE', label: '餐厅编号',css:"width:80px" },
	  					{ field: 'STORE_NAME_CN', label: '餐厅名字',css:"width:160px" },
	              ]
	       },
	       "bsNFS":{
	        	layerId:"Store",
	      		name:"",
	           	title:"CL Entity Store",
	           	url:"./controlservice/pagequery/mdscitycapacity?",
	           	field:[
	  					{ field: 'No', label: 'No',css:"width:80px" },
	  					{ field: 'ReviewPeriodStartDate', label: '开始评估时间',css:"width:160px" },
	  					{ field: 'ReviewPeriodEndDate', label: '结束评估时间' ,css:"width:80px"},
	  					{ field: 'OperationExcellence', label: 'O' ,css:"width:80px"},
	  					{ field: 'FinancialCapability', label: 'F',css:"width:80px" },
	  					{ field: 'PeopleDevelopment', label: 'P' ,css:"width:60px"},
	  					{ field: 'CustomerSatisfaction', label: 'CS',css:"width:160px" },
	  					{ field: 'FranchiseeInvolvement', label: 'F-Inv',css:"width:160px" }
	              ]
	       }
    	},
    /**
     * task字段配置
     */
    taskList:
    	{"ppfa":{
    		layerId:"pipeline",
        	name:"PP_Task",
        	title:"PP without FA",
        	type:"PP",
        	url:"./controlservice/pagequery/pp?",
        	sql:"(FAID is null or ltrim(rtrim(FAID)) = '') and StoreStatus_EnName = 'Remain' and PreApproval = 'Approved'",
        	field:[
					{ field: 'PPCode', label: 'Pipeline ID'},
					{ field: 'PMTCNSiteName', label: 'Pipeline Name' },
					{ field: 'City_Type_Name', label: 'City'},
					{ field: 'Process_EnName', label: 'Progress' },
					{ field: 'StoreType_EnName', label: 'Store Type' }
                  ]
         },
         "ppta":{
        	layerId:"pipeline",
         	name:"PP_Task",
         	title:"PP without TA",
         	type:"PP",
         	url:"./controlservice/pagequery/pp?",
        	sql:"(TACode is null or ltrim(rtrim(TACode)) = '') and StoreStatus_EnName = 'Remain' and PreApproval = 'Approved'",
        	field:[
					{ field: 'PPCode', label: 'Pipeline ID'},
					{ field: 'PMTCNSiteName', label: 'Pipeline Name' },
					{ field: 'City_Type_Name', label: 'City'},
					{ field: 'Process_EnName', label: 'Progress' },
					{ field: 'StoreType_EnName', label: 'Store Type' }
                 ]
          },
          "fa":{
            	layerId:"focalArea",
               	name:"FA_Task",
               	title:"FA without FA-TA",
               	type:"FA",
               	url:"./controlservice/pagequery/fa?",
            	sql:" (ltrim(rtrim(FATAID)) = '' or  FATAID is null) ",
              	field:[
    					{ field: 'FA_ID', label: 'FA ID' },
    					{ field: 'FAName', label: 'FA Name' },
    					{ field: 'FAType', label: 'FA Type' },
    					{ field: 'City_Type_Name', label: 'City' }
                      ]
            },
             "ppset":{
            	 layerId:"pipeline",
                 name:"PP_Set",
                 type:"PP",
                 title:"10% Sales Estimation",
                 url:"./controlservice/pagequery/ppset?",
             	 sql:" (PPCode is not null) ",
               	 field:[
     					{ field: 'PPCode', label: 'Pipeline ID'},
						{ field: 'PMTCNSiteName', label: 'Pipeline Name' },
						{ field: 'City_Type_Name', label: 'City'},
						{ field: 'Process_EnName', label: 'Progress' },
						{ field: 'StoreType_EnName', label: 'Store Type' }
                   ]
             },
             "ppredundant":{
            	 layerId:"pipeline",
                 name:"PPRedundant",
                 type:"PP",
                 title:"Potential Redundant PP",
                 url:"./controlservice/pagequery/ppredundant?",
             	 sql:" (FATAID is not null) ",
               	 field:[
               	        { label: 'checkbox',selector: 'checkbox',field: '',css:"width:60px"},
     					{ field: 'PPCode', label: 'Pipeline ID' },
     					{ field: 'PMTCNSiteName', label: 'Pipeline Name' },
    					{ field: 'Process_EnName', label: 'Process'},
    					{ field: 'FATAName', label: 'FATA Name'},
    					{ field: 'OpenedPPName', label: 'Store Name' },
    					{ field: 'StoreStatus_EnName', label: 'Status' }
                   ]
             },
             "mm":{
            	 id:'id',
                 url:"./services/queryservice/mm", 
                 field:[
                        { label: '',selector: 'checkbox',field: ''},
                        { field: 'MM_Type_Code', label: 'MM Code' },
                        { field: 'MM_Type_Name', label: 'MM Name' },
                        { field: 'MM_Type_EnName', label: 'MM Name_En' },
                        { field: 'mmPriority', label: 'MM Priority'}
                   ]
             },
             "pp":{
            	 id: 'id',
                 url:"./services/queryservice/pp", 
                 field:[
                        { label: '',selector: 'checkbox',field: ''},
                        { field: 'PPCode', label: 'PP ID' },
                        { field: 'CNSiteName', label: 'PP Name_CN' },
                        { field: 'PROGRESS_NAME', label: 'Progress' },
                        { field: 'STATUS_NAME', label: 'Status'},
                        { field: 'PreApproval', label: 'Pre_approved'},
                        { field: 'StoreType', label: 'Store Type'}
                   ]
             },
             "pprequired":{
            	 layerId:"pipeline",
                 name:"PPRequired",
                 type:"PP",
                 title:"PP 30% Required",
                 url:"./controlservice/pagequery/pprequired?",
             	 sql:" (PPCode is not null) ",
               	 field:[
     					{ field: 'PPCode', label: 'Pipeline ID'},
						{ field: 'PMTCNSiteName', label: 'Pipeline Name' },
						{ field: 'City_Type_Name', label: 'City'},
						{ field: 'Process_EnName', label: 'Progress' },
						{ field: 'StoreType_EnName', label: 'Store Type' }
                 ]
             }
             
             
    	},
    	/*专题图配置*/
    	thematic:{
    		pipeLineProjSales:{
    			layerId:"pipelineMap",dividType:"break",renderType:"img",field:"PMT2.dbo.gis_PPData.y1sales"
    		},
    		miniMarketPriority:{
    			layerId:"minimarketMap",dividType:"classify",renderType:"color",field:"PMT2.dbo.gis_Hierarchy.MMPriorityCode"
    		},
    		focalAreaPriority:{
    			layerId:"focalAreaMap",dividType:"classify",renderType:"color",field:"PMT2.dbo.gis_FAData.FAPriority"
    		},
    		focalAreaProjectOpenYear:{
    			layerId:"focalAreaMap",dividType:"break",renderType:"color",field:"PMT2.dbo.gis_FAData.OpenYear"
    		},
    		marketPP:{
    			layerId:"marketMap",dividType:"break",renderType:"color",field:"pp"
    		},
    		marketStroe:{
    			layerId:"marketMap",dividType:"break",renderType:"color",field:"store"
    		},
    		marketSigning:{
    			layerId:"marketMap",dividType:"break",renderType:"color",field:"signing"
    		},
    		marketMixed:{
    			layerId:"marketMap",dividType:"break",renderType:"color",field:"mix"
    		}
    	}
};

//全局变量
var Global = {
    dataRange:'0=0',//用#代替表前缀
    ppDataRange:'0=0',//后台查询PP的范围权限
    selectSource:null,//表单下拉项
    layerPanelWidth:260,//LayerControl宽度
    constant:{
    	SEARCHBEGIN:"searchbegin",
    	SEARCHEND:"searchend",
    	CLEARSEARCH:"clearSearch",
        LAYER_TREE_CHECK_COMMAND:"layerTreeCheckCommand",
        HIERARCHY_PRE:"PMT2.dbo.gis_Hierarchy.",
        PP_PRE:"PMT2.dbo.gis_PPData."
    },
    dataRangeRegion:null,
    ppDataRangeRegion:null,//PP的服务查询范围权限
    language:'cn',
    visibilitylevel:11,
    poilevel:15,//POI统计的Level
    locationLevel:17,//PP,Store定位的级别
    loginUser:'mcd',//登陆的用户
    loginUserEID:'',
    rights:[],
    mmRights:[],
    regionRights:null,
    marketRights:null,
    useRight:true,
    InitRight:false,//
    AllLabel:false,//控制label批量显示与隐藏
    rightbdPolygonId:"MGIS_EditToolBar_Baidu_PopPolygon"//百度多边形人口计算权限
};
